fix(e2e): networkidle → domcontentloaded fuer IACE E2E Tests
Root cause: Die Schwingarm-Rundtaktanlage Seite hat Background-Requests (vermutlich Polling oder SSE) die networkidle verhindern → 30s Timeout → alle Schwingarm-Tests schlagen fehl. Fix: waitUntil: 'domcontentloaded' + 3s Wartezeit fuer React-Hydration und API-Fetches. Verifiziert: Schwingarm-Seite laed korrekt mit domcontentloaded (h1: "Schwingarm-Rundtaktanlage"). iace-project-tabs: 10/10, iace-module: Schwingarm-Tests repariert. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -66,9 +66,11 @@ async function dismissCookieBanner(page: Page) {
|
||||
|
||||
/** Navigate, wait for async data, and dismiss cookie overlay. */
|
||||
async function goTo(page: Page, path: string) {
|
||||
await page.goto(`${BASE}${path}`, { waitUntil: 'networkidle', timeout: 30000 })
|
||||
// Use domcontentloaded instead of networkidle — some IACE pages have
|
||||
// long-running background requests that prevent networkidle from resolving.
|
||||
await page.goto(`${BASE}${path}`, { waitUntil: 'domcontentloaded', timeout: 30000 })
|
||||
await dismissCookieBanner(page)
|
||||
await page.waitForTimeout(2000)
|
||||
await page.waitForTimeout(3000) // Wait for React hydration + API fetches
|
||||
await dismissCookieBanner(page) // Retry after content load
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user