test: fix cross-platform keybind fixtures

This commit is contained in:
Sebastian Herrlinger
2026-07-23 16:41:15 +02:00
committed by opencode-agent[bot]
parent f32029e8b7
commit d7ccc7f9ad
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ test("mini handler passes resolved CLI keybinds to the runtime", async () => {
continue: false,
session: Option.none(),
fork: false,
replay: true,
replay: true as never,
replayLimit: Option.none(),
model: Option.none(),
agent: Option.none(),
+4 -3
View File
@@ -340,9 +340,10 @@ test("configured app bindings execute settings and permission commands", async (
await setup.renderOnce()
setup.mockInput.pressKey("p", { ctrl: true })
await setup.waitForFrame((frame) => frame.includes("Commands"))
const search = setup.renderer.currentFocusedEditor
if (!search) throw new Error("command palette search was not focused")
search.insertText("auto-approve")
setup.mockInput.pressKey("END")
setup.mockInput.pressArrow("up")
setup.mockInput.pressArrow("up")
setup.mockInput.pressArrow("up")
const commands = await setup.waitForFrame((frame) => frame.includes("Disable auto-approve permissions"))
expect(commands).not.toContain("Enable auto-approve permissions")