diff --git a/packages/cli/test/mini-config.test.ts b/packages/cli/test/mini-config.test.ts index ab241b714d..a93990d033 100644 --- a/packages/cli/test/mini-config.test.ts +++ b/packages/cli/test/mini-config.test.ts @@ -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(), diff --git a/packages/tui/test/app-lifecycle.test.tsx b/packages/tui/test/app-lifecycle.test.tsx index 5bc24f9461..5991cbf02d 100644 --- a/packages/tui/test/app-lifecycle.test.tsx +++ b/packages/tui/test/app-lifecycle.test.tsx @@ -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")