E2E: expect Lead for project main conversation in spaces spec
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
695d024f9c
commit
35ac96fed3
@ -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");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user