E2E: expect Lead for project main conversation in spaces spec

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 16:20:58 +00:00
parent 695d024f9c
commit 35ac96fed3
No known key found for this signature in database

View File

@ -125,7 +125,7 @@ test("spaces stay invisible by default and chat creation requires approval", asy
const supportSpaceId = supportSpaceGroup?.match(/^project-space:([^:]+)/)?.[1]; const supportSpaceId = supportSpaceGroup?.match(/^project-space:([^:]+)/)?.[1];
expect(supportSpaceId).toBeTruthy(); expect(supportSpaceId).toBeTruthy();
// A project created from chat comes with its own main agent, reached through its conversation. // A project created from chat comes with its own main agent, reached through its conversation.
await supportSpace.getByRole("button", { name: "Chief, main conversation" }).click(); await supportSpace.getByRole("button", { name: "Lead, main conversation" }).click();
await page.waitForURL(/\/app\/g\/[^/]+$/); await page.waitForURL(/\/app\/g\/[^/]+$/);
await expect await expect
.poll(() => page.evaluate(() => window.localStorage.getItem("rakazo:space-id"))) .poll(() => page.evaluate(() => window.localStorage.getItem("rakazo:space-id")))
@ -134,7 +134,7 @@ test("spaces stay invisible by default and chat creation requires approval", asy
// The home main conversation stays the first entry while another space is open. // The home main conversation stays the first entry while another space is open.
await expect(projekte.getByText("Customer support", { exact: true })).toBeVisible(); await expect(projekte.getByText("Customer support", { exact: true })).toBeVisible();
await expect(unterhaltungenOnly(page).getByRole("button", { name: /^Chief/ })).toHaveCount(1); await expect(unterhaltungenOnly(page).getByRole("button", { name: /^Chief/ })).toHaveCount(1);
await expect(projekte.getByRole("button", { name: /^Chief/ })).toHaveCount(1); await expect(projekte.getByRole("button", { name: /^Lead/ })).toHaveCount(1);
await expect(projekte.getByRole("button", { name: "Start", exact: true })).toHaveCount(0); await expect(projekte.getByRole("button", { name: "Start", exact: true })).toHaveCount(0);
await captureScreenshot(page, testInfo, "spaces-sidebar"); await captureScreenshot(page, testInfo, "spaces-sidebar");