test: fix cross-platform keybind fixtures
This commit is contained in:
committed by
opencode-agent[bot]
parent
f32029e8b7
commit
d7ccc7f9ad
@@ -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(),
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user