23 lines
993 B
TypeScript
23 lines
993 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.reload({ waitUntil: "domcontentloaded" });
|
|
await expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", {
|
|
timeout: 60_000,
|
|
});
|
|
|
|
const projekte = page.locator(".sidebar-projekte");
|
|
await expect(projekte.getByText("Empty project", { exact: true })).toBeVisible({
|
|
timeout: 30_000,
|
|
});
|
|
const sidebarStart = projekte.getByTestId(`project-start-${side.id}`);
|
|
await expect(sidebarStart).toBeVisible({ timeout: 30_000 });
|
|
await expect(sidebarStart).toContainText(/Start|Starten/i);
|
|
});
|