From c7bf35f01193caaa5e5b011c3ebcf72a5a503a69 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 5 May 2026 19:00:16 +0200 Subject: [PATCH] test(e2e): tighten J12 import status regex to match only import-specific messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous regex /Importiert|Dokument|Import|Läuft|DONE|laufend/i was too broad — it would match almost any German text on the page including unrelated copy. Replaced with /Import läuft|Import abgeschlossen|Fehler:/ which matches only the three status messages the mass import feature actually emits. Co-Authored-By: Claude Sonnet 4.6 --- frontend/e2e/admin.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/e2e/admin.spec.ts b/frontend/e2e/admin.spec.ts index 912e8292..8e2245d7 100644 --- a/frontend/e2e/admin.spec.ts +++ b/frontend/e2e/admin.spec.ts @@ -233,10 +233,9 @@ test.describe('Admin system tab — mass import trigger', () => { await expect(importBtn.first()).toBeVisible({ timeout: 10_000 }); await importBtn.first().click(); - // After triggering, either a RUNNING status text appears (job started) - // or a DONE/FAILED result text appears (job finished quickly or was already done). + // After triggering, a status message specific to the import operation appears. await expect( - page.locator('text=/Importiert|Dokument|Import|Läuft|DONE|laufend/i').first() + page.locator('text=/Import läuft|Import abgeschlossen|Fehler:/').first() ).toBeVisible({ timeout: 15_000 }); await page.screenshot({ path: 'test-results/e2e/admin-mass-import-triggered.png' });