test(bidi): wait for dialog to be dismissed in beforeunload test#39701
test(bidi): wait for dialog to be dismissed in beforeunload test#39701hbenl wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Test results for "tests 1"9 failed 7 flaky38761 passed, 846 skipped Merge workflow run. |
Test results for "MCP"5340 passed, 172 skipped Merge workflow run. |
|
Any idea why it is not throwing on other ports? In general, we are very lax in swallowing TargetClosedErrors when dismissing and canceling. We do that for routes, etc. I think it is appropriate to catch target closed in client's dismiss too. |
This happens when Firefox sends the
I'll create a PR. |
This test throws
dialog.dismiss: Test ended.with Firefox/Bidi on Linux (and the failure gets misattributed to another test in CI and causes other tests to be skipped).Unlike previous attempts, this PR doesn't swallow any exceptions but waits for the dialog to be dismissed before the test ends.