fix(app): prefer cmd+k for command palette (#18731)

This commit is contained in:
Shoubhit Dash
2026-03-23 13:30:24 +05:30
committed by GitHub
parent 5ea95451dd
commit 0f5626d2e4
5 changed files with 21 additions and 5 deletions
+2 -2
View File
@@ -175,9 +175,9 @@ export async function runTerminal(page: Page, input: { cmd: string; token: strin
await expect.poll(() => terminalHas(page, { term, token: input.token }), { timeout }).toBe(true)
}
export async function openPalette(page: Page) {
export async function openPalette(page: Page, key = "K") {
await defocus(page)
await page.keyboard.press(`${modKey}+P`)
await page.keyboard.press(`${modKey}+${key}`)
const dialog = page.getByRole("dialog")
await expect(dialog).toBeVisible()