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:
@@ -158,10 +158,8 @@ test.describe("New workspace flow", () => {
|
|||||||
subtitle: openedProject.projectDisplayName,
|
subtitle: openedProject.projectDisplayName,
|
||||||
});
|
});
|
||||||
|
|
||||||
const draftTabs = page.locator('[data-testid^="workspace-tab-"]').filter({
|
const agentTabs = page.locator('[data-testid^="workspace-tab-agent_"]');
|
||||||
has: page.getByText("New Agent", { exact: true }),
|
await expect(agentTabs).toHaveCount(1, { timeout: 30_000 });
|
||||||
});
|
|
||||||
await expect(draftTabs).toHaveCount(1, { timeout: 30_000 });
|
|
||||||
|
|
||||||
const composer = page.getByRole("textbox", { name: "Message agent..." });
|
const composer = page.getByRole("textbox", { name: "Message agent..." });
|
||||||
await expect(composer).toBeEditable({ timeout: 30_000 });
|
await expect(composer).toBeEditable({ timeout: 30_000 });
|
||||||
|
|||||||
Reference in New Issue
Block a user