epic(legibility): pre-flight — make tests trustworthy (#402) #430

Merged
marcel merged 11 commits from worktree-test-issue-402-legibility-preflight into main 2026-05-05 20:36:15 +02:00
Showing only changes of commit c7bf35f011 - Show all commits

View File

@@ -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' });