summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e/settings
diff options
context:
space:
mode:
authorRyan Miville <[email protected]>2026-02-07 20:26:54 -0500
committerGitHub <[email protected]>2026-02-07 19:26:54 -0600
commitecaeb9e6027c6be2d3f848812dc41c22342e9917 (patch)
tree2f50960a569f23f21d20f40bc9edb9619f734081 /packages/app/e2e/settings
parente772fc6e2372cf2b82252d3ce2154696cec25d72 (diff)
downloadopencode-ecaeb9e6027c6be2d3f848812dc41c22342e9917.tar.gz
opencode-ecaeb9e6027c6be2d3f848812dc41c22342e9917.zip
fix(app): respect terminal toggle keybind when terminal is focused (#12635)
Diffstat (limited to 'packages/app/e2e/settings')
-rw-r--r--packages/app/e2e/settings/settings-keybinds.spec.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/app/e2e/settings/settings-keybinds.spec.ts b/packages/app/e2e/settings/settings-keybinds.spec.ts
index eceb82b74..a8e7f3352 100644
--- a/packages/app/e2e/settings/settings-keybinds.spec.ts
+++ b/packages/app/e2e/settings/settings-keybinds.spec.ts
@@ -1,6 +1,6 @@
import { test, expect } from "../fixtures"
import { openSettings, closeDialog, withSession } from "../actions"
-import { keybindButtonSelector } from "../selectors"
+import { keybindButtonSelector, terminalSelector } from "../selectors"
import { modKey } from "../utils"
test("changing sidebar toggle keybind works", async ({ page, gotoSession }) => {
@@ -267,11 +267,14 @@ test("changing terminal toggle keybind works", async ({ page, gotoSession }) =>
await closeDialog(page, dialog)
+ const terminal = page.locator(terminalSelector)
+ await expect(terminal).not.toBeVisible()
+
await page.keyboard.press(`${modKey}+Y`)
- await page.waitForTimeout(100)
+ await expect(terminal).toBeVisible()
- const pageStable = await page.evaluate(() => document.readyState === "complete")
- expect(pageStable).toBe(true)
+ await page.keyboard.press(`${modKey}+Y`)
+ await expect(terminal).not.toBeVisible()
})
test("changing command palette keybind works", async ({ page, gotoSession }) => {