evOo-local/apps/web/e2e/empty-project-state.spec.ts
Cursor Agent 5387b38e54
fix(e2e): stabilize Phase 2 specs for mobile shell and empty project
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
2026-10-07 10:01:41 +00:00

22 lines
938 B
TypeScript

import { expect, test } from "@playwright/test";
import { completeOnboarding, rpc, signup } from "./helpers";
test("empty project space offers Start before the main conversation exists", async ({ page }) => {
const stamp = Date.now();
await signup(page, `empty-project-${stamp}@rakazo.test`, "password12", "Empty Project");
await completeOnboarding(page);
const side = await rpc<{ id: string }>(page, "spaces/create", { name: "Empty project" });
await page.evaluate((spaceId) => {
window.localStorage.setItem("rakazo:space-id", spaceId);
}, side.id);
await page.reload({ waitUntil: "domcontentloaded" });
await expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", {
timeout: 60_000,
});
const sidebarStart = page.getByTestId(`project-start-${side.id}`);
await expect(sidebarStart).toBeVisible({ timeout: 30_000 });
await expect(sidebarStart).toContainText(/Start|Starten/i);
});