feat(compliance): P-01b Mobile/PWA-Zugriff auf Rechtstexte via Einstellungen
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 32s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 8s
Test Suite / playwright-tests (push) Failing after 49s
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 32s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 8s
Test Suite / playwright-tests (push) Failing after 49s
- SettingsLegalPage.jsx: neue Hub-Seite /settings/legal mit allen 4 Rechtstext-Links - App.jsx: Route /settings/legal in ProtectedLayout registriert - AccountSettingsPage.jsx: Link zu /settings/legal unterhalb System-Info - 3 Playwright-Tests für P-01b (Einstellungen → Rechtliches → Links → Routen) - Version: 0.8.69 → 0.8.70 (backend + frontend) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
75d6a40817
commit
8261fa4420
6 files changed
+135
-2
No files matched your search
@@ -230,6 +230,59 @@ test('P-01: Login-Seite enthält Links zu allen vier Rechtstextseiten', async ({
|
||||
console.log('✓ P-01: Login-Seite – alle vier Rechtstext-Links vorhanden');
|
||||
});
|
||||
|
||||
// P-01b: Rechtliches über Einstellungen (Mobile/PWA-Erreichbarkeit)
|
||||
|
||||
test('P-01b: Einstellungen enthält Link zu Rechtliches', async ({ page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await login(page);
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await page.goto('/settings');
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
const link = page.locator('a[href="/settings/legal"]');
|
||||
await expect(link).toBeVisible();
|
||||
|
||||
console.log('✓ P-01b: Einstellungen enthält Link zu /settings/legal');
|
||||
});
|
||||
|
||||
test('P-01b: /settings/legal enthält Links zu allen vier Rechtstextseiten', async ({ page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await login(page);
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await page.goto('/settings/legal');
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await expect(page.getByRole('heading', { level: 1 })).toContainText('Rechtliches');
|
||||
|
||||
for (const route of LEGAL_ROUTES) {
|
||||
const link = page.locator(`a[href="${route.path}"]`);
|
||||
await expect(link).toBeVisible();
|
||||
}
|
||||
|
||||
console.log('✓ P-01b: /settings/legal – Überschrift + alle vier Rechtstext-Links vorhanden');
|
||||
});
|
||||
|
||||
test('P-01b: Jeder Rechtstext-Link aus /settings/legal führt zur korrekten Route', async ({ page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await login(page);
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
for (const route of LEGAL_ROUTES) {
|
||||
await page.goto('/settings/legal');
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await page.locator(`a[href="${route.path}"]`).click();
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
expect(page.url()).toContain(route.path);
|
||||
await expect(page.getByRole('heading', { level: 1 })).toContainText(route.label);
|
||||
|
||||
console.log(`✓ P-01b: ${route.label} – Link aus /settings/legal korrekt`);
|
||||
}
|
||||
});
|
||||
|
||||
test('8. Keine kritischen Console-Fehler', async ({ page }) => {
|
||||
const errors = [];
|
||||
page.on('console', msg => {
|
||||
|
||||
Reference in new issue
Block a user