Compare commits

...

2 Commits

2 changed files with 5 additions and 6 deletions

View File

@ -230,16 +230,12 @@ export class SceneFixture {
await expect(this.networkToggleConnected).toBeVisible({ timeout })
}
settled = async (cmdBar: CmdBarFixture) => {
settled = async (cmdBar?: CmdBarFixture) => {
const u = await getUtils(this.page)
await expect(this.startEditSketchBtn).not.toBeDisabled({ timeout: 15_000 })
await expect(this.startEditSketchBtn).toBeVisible()
await cmdBar.openCmdBar()
await cmdBar.chooseCommand('Settings · app · show debug panel')
await cmdBar.selectOption({ name: 'on' }).click()
await u.openDebugPanel()
await u.expectCmdLog('[data-message-type="execution-done"]')
await u.closeDebugPanel()

View File

@ -3,6 +3,7 @@ import { faBugSlash } from '@fortawesome/free-solid-svg-icons'
import type { MouseEventHandler, ReactNode } from 'react'
import type { ContextFrom } from 'xstate'
import { IS_PLAYWRIGHT_KEY } from '@e2e/playwright/storageStates'
import type { CustomIconName } from '@src/components/CustomIcon'
import {
FileTreeInner,
@ -241,6 +242,8 @@ export const sidebarPanes: SidebarPane[] = [
)
},
keybinding: 'Shift + D',
hide: ({ settings }) => !settings.app.showDebugPanel.current,
hide: ({ settings }) =>
!(window?.localStorage.getItem(IS_PLAYWRIGHT_KEY) === 'true') &&
!settings.app.showDebugPanel.current,
},
]