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.
This commit is contained in:
Mohamed Boudra
2026-04-14 12:41:28 +07:00
parent d480101115
commit 612979f95f
+2 -4
View File
@@ -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 });