import { test, expect } from "@playwright/test"; /** * E2E test skeleton - requires: pnpm db:push && pnpm db:seed && pnpm dev */ test.describe("Dashboard", () => { test("loads and shows evaluations list", async ({ page }) => { await page.goto("/"); await expect(page.locator("h1")).toContainText("Evaluations"); // Either empty state or table const table = page.locator("table"); await expect(table).toBeVisible(); }); test("navigates to new evaluation", async ({ page }) => { await page.goto("/"); await page.click('a[href="/evaluations/new"]'); await expect(page).toHaveURL(/\/evaluations\/new/); await expect(page.locator("h1")).toContainText("New Evaluation"); }); });