diff --git a/e2e/keyword-research-navigation.spec.ts b/e2e/keyword-research-navigation.spec.ts index 910051a..0da192c 100644 --- a/e2e/keyword-research-navigation.spec.ts +++ b/e2e/keyword-research-navigation.spec.ts @@ -115,6 +115,10 @@ test.describe("Keyword Research navigation", () => { await expect( page.locator(`[data-search-tab-id="${closedTabId}"]`), ).toHaveCount(0); - await expect(page.getByRole("tab")).toHaveCount(2); + // Count only search tabs: the app shell has grown other tablists + // (Browse/Chat), so a bare role=tab count would include them. + await expect( + page.getByRole("tablist", { name: "Search tabs" }).getByRole("tab"), + ).toHaveCount(2); }); }); diff --git a/src/client/features/search-tabs/SearchTabStrip.tsx b/src/client/features/search-tabs/SearchTabStrip.tsx index 4bb9b4d..00b00f8 100644 --- a/src/client/features/search-tabs/SearchTabStrip.tsx +++ b/src/client/features/search-tabs/SearchTabStrip.tsx @@ -43,6 +43,7 @@ export function SearchTabStrip({