feat(admin): dedicated routes for user management (#37) #47

Merged
marcel merged 17 commits from feat/35-profile-page into main 2026-03-23 07:55:18 +01:00
Showing only changes of commit ea6b727e44 - Show all commits

View File

@@ -48,6 +48,15 @@ test.describe('Authentication', () => {
await page.screenshot({ path: 'test-results/e2e/login-success.png' });
});
test('login establishes a session that authenticates API calls', async ({ page }) => {
// Guards against regressions where the session cookie is set but broken —
// a working URL redirect is not enough evidence that auth works end-to-end.
await login(page);
const response = await page.request.get('/api/users/me');
expect(response.ok()).toBe(true);
await page.screenshot({ path: 'test-results/e2e/auth-session-valid.png' });
});
test('logout clears the session and redirects to /login', async ({ page }) => {
await login(page);
// Logout is inside the user avatar dropdown — open it first