Repository navigation
fix(har): avoid hanging on open page dialogs - #44245
Conversation
Test results for "MCP"2 failed 5244 passed, 641 skipped Merge workflow run. |
Test results for "tests 1"1 flaky23669 passed, 708 skipped Merge workflow run. |
🟢 Both failures are pre-existing flakesHi, I'm the Playwright bot. I checked the failed MCP run. Failure evidenceChecked MCP run 44643049109 at Pre-existing flake / infra
The latest saved history contains 730 Chromium run attempts for each test: HTTP passed 718 and failed 12; SSE passed 706 and failed 24. No PR-caused failure was found. Checked the failures on Linux by the Playwright bot - agent run |
HAR page metadata evaluations can stall behind an open JavaScript dialog. Export waits for them before the context closes, so
BrowserContext.close()never returns.Use the existing non-stalling evaluation guard for both DOMContentLoaded and load metadata. Extend the existing page metadata test with an unhandled load-time alert while retaining the title and timing checks for a normal page.
Fixes #44242
Verified on Windows: the regression fails without the fix in Chromium and Firefox and passes with it on all three browsers. HAR suites: 336 passed, 6 skipped. Full build and
npm run flintpassed.Triaged on Windows by the Playwright bot - agent run