2026-02-19 12:54:04 +00:00
|
|
|
import { expect, test } from "@playwright/test";
|
|
|
|
|
|
|
|
|
|
test.describe("App boot smoke test", () => {
|
2026-02-26 17:01:30 +00:00
|
|
|
test("renders the app without errors", async ({ page }) => {
|
2026-02-19 14:45:57 +00:00
|
|
|
await page.goto("/");
|
2026-02-19 12:54:04 +00:00
|
|
|
|
2026-02-26 17:01:30 +00:00
|
|
|
// The app should render either the project selection screen or the
|
|
|
|
|
// workspace chat view, depending on whether a project is already open.
|
|
|
|
|
// We intentionally do NOT call DELETE /api/project here because that
|
|
|
|
|
// would nuke the live server's project_root state and break any
|
|
|
|
|
// background agents that depend on it.
|
|
|
|
|
//
|
|
|
|
|
// Just verify the page loads and has a visible <main> container.
|
|
|
|
|
await expect(page.locator("main.container")).toBeVisible();
|
2026-02-19 14:45:57 +00:00
|
|
|
});
|
2026-02-19 12:54:04 +00:00
|
|
|
});
|