veza/tests/e2e/audit/functional/04-admin.spec.ts
senke 463ad5386b test: update e2e test suite and add audit tests
Refine auth, player, tracks, playlists, search, workflows, edge cases,
forms, responsive, network errors, error boundary, performance, visual
regression, cross-browser, profile, smoke, storybook, chat, and session
tests. Add audit test suite (accessibility, ethical, functional, design
tokens). Update test helpers and visual snapshots.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:06:26 +01:00

20 lines
756 B
TypeScript

import { test, expect } from '@playwright/test';
import { loginViaAPI, navigateTo, assertNotBroken, assertNoDebugText } from '../helpers';
import { TEST_USERS, ROUTES } from '../design-tokens';
test.describe('FONCTIONNEL — Pages Admin', () => {
test.beforeEach(async ({ page }) => {
await loginViaAPI(page, TEST_USERS.admin.email, TEST_USERS.admin.password);
});
for (const route of ROUTES.admin) {
test(`${route.name} (${route.path}) — se charge sans crash`, async ({ page }) => {
await navigateTo(page, route.path);
await assertNotBroken(page);
await assertNoDebugText(page);
const main = page.locator('main, [role="main"]').first();
await expect(main).toBeVisible({ timeout: 15_000 });
});
}
});