7884ebbfd4
Add demo mode with mock data provider, Docker deployment, Playwright tests, PostHog analytics, error boundaries, and SEO metadata. Fix residences API response unwrapping, kanban drag-and-drop with optimistic updates, trailing slash proxy redirects, and column name mismatches with Go API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
499 B
TypeScript
17 lines
499 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe("Documents (Demo Mode)", () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto("/demo/app/documents");
|
|
});
|
|
|
|
test("displays document list", async ({ page }) => {
|
|
await expect(page.locator("h1, h2").first()).toContainText(/documents/i);
|
|
});
|
|
|
|
test("navigate to add document", async ({ page }) => {
|
|
await page.click("text=Add Document");
|
|
await expect(page).toHaveURL("/demo/app/documents/new");
|
|
});
|
|
});
|