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>
20 lines
756 B
TypeScript
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 });
|
|
});
|
|
}
|
|
});
|