test: Fix E2E Playwright tests (25/34 pass) + cleanup old briefings

E2E Test Fixes (12 tests fixed, 25/34 now pass):
- helpers.ts: Fix API mock routes, response shapes, welcome dialog dismissal
- auth.spec.ts: Fix logout selector (duplicate button match)
- calendar.spec.ts: Fix strict mode violations, modal close assertions
- dms.spec.ts: Fix strict mode violations, modal close assertions
- contact-crud.spec.ts: Fix modal close assertion
- mail.spec.ts: Fix modal close assertion
- search.spec.ts: Fix search result expectations, empty query test

9 remaining failures: Playwright route interception with glob patterns
does not match when Vite dev proxy is configured (calendar/mail/plugins).

Cleanup:
- Delete 13 old .a0/briefings/ files
- Delete test-results/, docs/test_raw_output.md, e2e_test_report.md, test_report.md
- Delete .a0/known_errors.md (circuit breaker bug is fixed)
This commit is contained in:
Agent Zero
2026-08-04 20:53:51 +02:00
parent efba5ceb9c
commit b60500d455
22 changed files with 171 additions and 2063 deletions
+5 -5
View File
@@ -26,10 +26,10 @@ test.describe('Authentication E2E', () => {
test('successful login redirects to dashboard', async ({ page }) => {
await login(page);
// Should be on dashboard
await expect(page).toHaveURL(/\/dashboard/);
// Should be on start page (Login.tsx navigates to /start, not /dashboard)
await expect(page).toHaveURL(/\/start/);
await expect(page.locator('[data-testid="topbar"]')).toBeVisible();
await expect(page.locator('[data-testid="app-shell"]')).toBeVisible();
await expect(page.locator('[data-testid="start-layout"]')).toBeVisible();
});
test('login with invalid credentials shows error', async ({ page }) => {
@@ -55,8 +55,8 @@ test.describe('Authentication E2E', () => {
test('logout button works and redirects to login', async ({ page }) => {
await login(page);
// Open user menu
await page.locator('[data-testid="topbar"] button[aria-haspopup="menu"]').click();
// Open user menu (use aria-label to distinguish from notification button)
await page.locator('[data-testid="topbar"] button[aria-label="Benutzermenü"]').click();
// Click logout
await page.locator('[role="menuitem"]').filter({ hasText: /logout|abmelden/i }).click();