Add an active e2e spec asserting /briefwechsel 404s on the styled app error page. The old assertion lived in stammbaum.spec.ts inside a test.skip() block (never executed) and asserted the opposite — remove it. Drop /briefwechsel from the auth protected-route loop; /documents (the redirect target) sits behind the same authenticated() rule, so coverage is preserved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
701 B
TypeScript
16 lines
701 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
// The standalone Briefwechsel view was removed (its one inbound link now
|
|
// deep-links into document search). The old URL is allowed to 404 — no
|
|
// redirect shim. This guard runs in the authenticated project so the route
|
|
// genuinely 404s on the styled app error page instead of bouncing to /login.
|
|
test.describe('Briefwechsel view removed', () => {
|
|
test('/briefwechsel returns 404 on the styled app error page', async ({ page }) => {
|
|
const response = await page.goto('/briefwechsel');
|
|
|
|
expect(response?.status()).toBe(404);
|
|
// +error.svelte renders the status code prominently.
|
|
await expect(page.getByText('404')).toBeVisible();
|
|
});
|
|
});
|