mock data

This commit is contained in:
master
2026-02-21 19:10:28 +02:00
parent b911537870
commit 1edce73165
61 changed files with 2325 additions and 3424 deletions

View File

@@ -138,7 +138,7 @@ async function go(page: Page, path: string): Promise<void> {
}
async function ensureShell(page: Page): Promise<void> {
await expect(page.locator('aside.sidebar')).toHaveCount(1, { timeout: 15000 });
await expect(page.locator('aside.sidebar')).toHaveCount(1, { timeout: 30000 });
}
async function assertMainHasContent(page: Page): Promise<void> {
@@ -200,24 +200,6 @@ test.describe('Nav shell canonical domains', () => {
});
});
test.describe('No redirect contracts', () => {
const legacyPaths = [
'/release-control/releases',
'/security-risk/findings',
'/evidence-audit/packs',
'/administration',
];
for (const path of legacyPaths) {
test(`${path} does not rewrite URL`, async ({ page }) => {
await go(page, path);
const finalUrl = new URL(page.url());
expect(finalUrl.pathname).toBe(path);
await expect(page.getByRole('heading', { level: 1, name: /dashboard/i })).toBeVisible();
});
}
});
test.describe('Nav shell breadcrumbs and stability', () => {
const breadcrumbRoutes: Array<{ path: string; expected: string }> = [
{ path: '/mission-control/board', expected: 'Mission Board' },
@@ -309,7 +291,7 @@ test.describe('Pack route render checks', () => {
});
test('ops and setup routes render non-blank content', async ({ page }) => {
test.setTimeout(60_000);
test.setTimeout(180_000);
const routes = [
'/ops',