feat(admin): dedicated routes for user management (#37) #47
@@ -50,6 +50,8 @@ test.describe('Authentication', () => {
|
|||||||
|
|
||||||
test('logout clears the session and redirects to /login', async ({ page }) => {
|
test('logout clears the session and redirects to /login', async ({ page }) => {
|
||||||
await login(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 page.getByRole('button', { name: 'Abmelden' }).click();
|
||||||
await expect(page).toHaveURL(/\/login/);
|
await expect(page).toHaveURL(/\/login/);
|
||||||
// Confirm session is gone: navigating to / redirects back
|
// Confirm session is gone: navigating to / redirects back
|
||||||
|
|||||||
Reference in New Issue
Block a user