From ff6bc043e789cddea39449014eccb65e6cd2ea27 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 16:07:29 +0200 Subject: [PATCH] test(desktop): wait for restored tabs before shortcut input Document load completes before the workspace reconnects. Wait for the restored selection so Ctrl+1 reaches the mounted workspace rather than the startup screen. --- packages/desktop/e2e/keyboard-shortcut-unassign.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/desktop/e2e/keyboard-shortcut-unassign.spec.ts b/packages/desktop/e2e/keyboard-shortcut-unassign.spec.ts index b7063b4565..60de3ee5e6 100644 --- a/packages/desktop/e2e/keyboard-shortcut-unassign.spec.ts +++ b/packages/desktop/e2e/keyboard-shortcut-unassign.spec.ts @@ -240,6 +240,8 @@ async function openTwoDraftTabs(page: Page, workspaceId: string) { async function expectTabNumberNavigation(page: Page) { const tabs = page.locator('[data-testid^="workspace-tab-draft_"]').filter({ visible: true }); + await expect(page.getByTestId("settings-sidebar")).not.toBeVisible(); + await expect(tabs.nth(1)).toHaveAttribute("aria-selected", "true"); await page.keyboard.press("Control+1"); await expect(tabs.nth(0)).toHaveAttribute("aria-selected", "true"); await page.keyboard.press("Control+2");