diff --git a/src/App.test.tsx b/src/App.test.tsx
index 9c556942..7c2961fb 100644
--- a/src/App.test.tsx
+++ b/src/App.test.tsx
@@ -1240,6 +1240,67 @@ describe("App", () => {
await screen.findByText("Now")
})
+ it("switches sidebar tabs with Cmd+Up and Cmd+Down immediately after focus", async () => {
+ state.loadPluginSettingsMock.mockResolvedValueOnce({ order: ["a", "b"], disabled: [] })
+ state.invokeMock.mockImplementation(async (cmd: string) => {
+ if (cmd === "list_plugins") {
+ return [
+ { id: "a", name: "Alpha", iconUrl: "icon-a", primaryProgressLabel: null, lines: [{ type: "text", label: "Alpha line", scope: "overview" }] },
+ { id: "b", name: "Beta", iconUrl: "icon-b", primaryProgressLabel: null, lines: [{ type: "text", label: "Beta line", scope: "overview" }] },
+ ]
+ }
+ return null
+ })
+
+ render(