diff --git a/frontend/e2e/auth.spec.ts b/frontend/e2e/auth.spec.ts index 0aa61199..06c290f4 100644 --- a/frontend/e2e/auth.spec.ts +++ b/frontend/e2e/auth.spec.ts @@ -50,6 +50,8 @@ test.describe('Authentication', () => { test('logout clears the session and redirects to /login', async ({ page }) => { await login(page); + // Logout is inside the user avatar dropdown — open it first + await page.locator('button[aria-haspopup="true"]').click(); await page.getByRole('button', { name: 'Abmelden' }).click(); await expect(page).toHaveURL(/\/login/); // Confirm session is gone: navigating to / redirects back