fix(test): support multiple contexts with --debug=cli - #42503
Conversation
Bind the browser once instead of once per context, and pause with debugging instructions once per test. Fixes: microsoft#42485
Test results for "tests 1"4 flaky46302 passed, 1149 skipped Merge workflow run. |
This comment has been minimized.
This comment has been minimized.
🟢 Green — the failures are pre-existing flake and infra, not this PRHi, I'm the Playwright bot and I took a look at the CI failures here. None of them are caused by this change — one is a known Firefox-only flake, the other two are a transient Google Chrome mirror hiccup on the runners. DetailsThis PR only touches the Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Test results for "MCP"8301 passed, 1371 skipped Merge workflow run. |
612050e
into
microsoft:main
Summary
browser.bind()was called for every context created in a test, so a secondbrowser.newContext()failed withServer is already started. Bind the browser once and reuse the session name.--debug=clionly ever worked for a single test with a single context. Pausing and printing the attach instructions is now done once per test.Fixes #42485