Files
EpicNext-Cms/e2e/navigation.spec.ts
T
openhands 423a33200e
CI / check (push) Failing after 14s
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 2m38s
chore: improve tooling, linting, testing, and CI
- Add LICENSE file (CC BY-NC-SA 4.0)
- Add .nvmrc pinning Node 22
- Add Renovate config with daily schedule and Gitea Actions workflow
- Reduce ESLint max-warnings from 1000 to 50
- Re-enable Biome a11y/security recommended rules
- Fix Biome lint issues (a11y, hook deps, SVG labels, checkbox semantics)
- Improve CI: run on pushes to feat/fix branches, add pnpm audit
- Add Vitest coverage with v8 provider and thresholds
- Add E2E tests (auth, admin, navigation specs)
- Add admin-maintenance server action test
- Install @vitest/coverage-v8
- Ignore coverage/ directory
2026-07-27 17:03:09 +02:00

25 lines
752 B
TypeScript

import { expect, test } from "@playwright/test";
test.describe("Public navigation", () => {
test("homepage loads with expected elements", async ({ page }) => {
await page.goto("/");
await expect(page.locator("nav")).toBeVisible();
await expect(page.locator("footer")).toBeVisible();
});
test("community page loads", async ({ page }) => {
await page.goto("/community");
await expect(page).toHaveTitle(/community/i);
});
test("shop page loads", async ({ page }) => {
await page.goto("/shop");
await expect(page.locator("h1, h2").first()).toBeVisible();
});
test("404 page for unknown routes", async ({ page }) => {
const response = await page.goto("/this-page-does-not-exist");
expect(response?.status()).toBe(404);
});
});