import { expect, test } from "@playwright/test"; test.describe("App boot smoke test", () => { test.beforeEach(async ({ request }) => { // Close any project the server may have auto-opened (e.g. via CLI path // argument) so we always start from the selection screen. await request.delete("/api/project").catch(() => { // Ignore errors when no project is open or backend is unavailable. }); }); test("renders the project selection screen", async ({ page }) => { await page.goto("/"); await expect(page.getByText("Story Kit")).toBeVisible(); await expect(page.getByPlaceholder("/path/to/project")).toBeVisible(); await expect( page.getByRole("button", { name: "Open Project" }), ).toBeVisible(); }); });