From 35ac96fed3dd4c3b8df8d3ab8be8f5a82c4a0e1d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 7 Oct 2026 16:20:58 +0000 Subject: [PATCH] E2E: expect Lead for project main conversation in spaces spec Co-authored-by: cynarAI --- apps/web/e2e/spaces.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/e2e/spaces.spec.ts b/apps/web/e2e/spaces.spec.ts index 1802608..f9f22d8 100644 --- a/apps/web/e2e/spaces.spec.ts +++ b/apps/web/e2e/spaces.spec.ts @@ -125,7 +125,7 @@ test("spaces stay invisible by default and chat creation requires approval", asy const supportSpaceId = supportSpaceGroup?.match(/^project-space:([^:]+)/)?.[1]; expect(supportSpaceId).toBeTruthy(); // 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 expect .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. await expect(projekte.getByText("Customer support", { exact: true })).toBeVisible(); 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 captureScreenshot(page, testInfo, "spaces-sidebar");