fix(test): fix login page title test after DGB logo removal
Some checks failed
CI / E2E Tests (push) Has been cancelled
CI / Unit & Component Tests (push) Has started running

The logo was changed from an SVG to a plain <span>, causing
getByText('Familienarchiv') to match both the logo and the footer.
- Update test to use getByRole('link') for precision
- Remove "De Gruyter" from footer text to align with branding change

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-17 20:55:34 +01:00
parent dcb26e201a
commit 0d0aa83c0c
2 changed files with 2 additions and 2 deletions

View File

@@ -47,6 +47,6 @@
<!-- Footer -->
<div class="py-4 text-center">
<p class="text-xs font-sans text-gray-300 uppercase tracking-widest">De Gruyter Familienarchiv</p>
<p class="text-xs font-sans text-gray-300 uppercase tracking-widest">Familienarchiv</p>
</div>
</div>

View File

@@ -8,7 +8,7 @@ const tick = () => new Promise((r) => setTimeout(r, 0));
describe('Login page rendering', () => {
it('renders the page title', async () => {
render(LoginPage, {});
await expect.element(page.getByText('Familienarchiv')).toBeInTheDocument();
await expect.element(page.getByRole('link', { name: 'Familienarchiv' })).toBeInTheDocument();
await page.screenshot({ path: 'test-results/screenshots/login-default.png' });
});