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>
22 lines
665 B
TypeScript
22 lines
665 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe("Tasks (Demo Mode)", () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto("/demo/app/tasks");
|
|
});
|
|
|
|
test("displays task page", async ({ page }) => {
|
|
await expect(page.locator("h1, h2").first()).toContainText(/tasks/i);
|
|
});
|
|
|
|
test("navigate to add task", async ({ page }) => {
|
|
await page.click("text=Add Task");
|
|
await expect(page).toHaveURL("/demo/app/tasks/new");
|
|
});
|
|
|
|
test("add task form has required fields", async ({ page }) => {
|
|
await page.goto("/demo/app/tasks/new");
|
|
await expect(page.locator('input[name="title"]').first()).toBeVisible();
|
|
});
|
|
});
|