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:
21
tests/e2e/dashboard.spec.ts
Normal file
21
tests/e2e/dashboard.spec.ts
Normal 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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user