From 008eeaf18e0d8bddce0503f14a185a007187db4b Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 03:01:32 +0000 Subject: [PATCH] Wait for the shortcut's New tab before counting New tabs (#9725) A workspace opens on a New tab of its own, so waiting for the first New tab to show passed before the Ctrl+T tab rendered. On a slow runner the count was read too early, and the plus-menu check then saw the shortcut's tab arrive as an extra one. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- packages/app/e2e/browser/launcher-tab.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/app/e2e/browser/launcher-tab.spec.ts b/packages/app/e2e/browser/launcher-tab.spec.ts index a34aa259d..71c774dd6 100644 --- a/packages/app/e2e/browser/launcher-tab.spec.ts +++ b/packages/app/e2e/browser/launcher-tab.spec.ts @@ -125,12 +125,15 @@ test.describe("Tab creation", () => { }) => { await gotoWorkspace(page, workspace.workspaceId); await assertNewTabMenuTriggerVisible(page); - await pressNewTabShortcut(page); const newTabs = page .locator('[data-testid^="workspace-tab-tab_"]') .filter({ hasText: "New tab" }); + // The workspace opens on a New tab of its own; count from the tab the shortcut adds. await expect(newTabs.first()).toBeVisible(); - const countBefore = await newTabs.count(); + const openedCount = await newTabs.count(); + await pressNewTabShortcut(page); + await expect(newTabs).toHaveCount(openedCount + 1); + const countBefore = openedCount + 1; const draftCount = await countTabsOfKind(page, "draft"); await test.step("opening the plus menu leaves the current tabs intact", async () => {