Enhance project setup with Prisma, new scripts, and dependencies; update README for clarity and add API routes; improve layout and styling for better user experience

This commit is contained in:
Julien Froidefond
2026-02-20 09:12:37 +01:00
parent 4ecd13a93a
commit f0c5d768db
33 changed files with 4277 additions and 107 deletions

View File

@@ -0,0 +1,21 @@
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");
});
});