From 612979f95f7ba1cd70d703e5be4bbb2d5f59f776 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 14 Apr 2026 12:41:28 +0700 Subject: [PATCH] fix(e2e): check for agent tab instead of draft "New Agent" tab The empty-submit flow creates an actual agent, not a draft tab. Assert on the agent tab testID prefix instead of specific tab text. --- packages/app/e2e/new-workspace.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/app/e2e/new-workspace.spec.ts b/packages/app/e2e/new-workspace.spec.ts index a0db7e457..a31aa0e26 100644 --- a/packages/app/e2e/new-workspace.spec.ts +++ b/packages/app/e2e/new-workspace.spec.ts @@ -158,10 +158,8 @@ test.describe("New workspace flow", () => { subtitle: openedProject.projectDisplayName, }); - const draftTabs = page.locator('[data-testid^="workspace-tab-"]').filter({ - has: page.getByText("New Agent", { exact: true }), - }); - await expect(draftTabs).toHaveCount(1, { timeout: 30_000 }); + const agentTabs = page.locator('[data-testid^="workspace-tab-agent_"]'); + await expect(agentTabs).toHaveCount(1, { timeout: 30_000 }); const composer = page.getByRole("textbox", { name: "Message agent..." }); await expect(composer).toBeEditable({ timeout: 30_000 });