Repository navigation
fix(mcp): preserve HAR recordings from isolated contexts - #44212
microsoft-playwright-automation[bot] wants to merge 2 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
🟢 All three failures also occur on the base commitI'm the Playwright bot. These failures were not caused by this PR. DetailsChecked the MCP run for head Pre-existing flake / infra All three
This proves the failures predate the PR; it does not establish whether they are intermittent. No PR change is needed for these failures. Checked the failures on Linux by the Playwright bot - agent run |
Pavel Feldman (pavelfeldman)
left a comment
There was a problem hiding this comment.
I don't think we should change the config here. We should suggest that user starts / stops tracing instead, trace contains HAR. We can also implement start / stop har feature.
This comment has been minimized.
This comment has been minimized.
|
Hi, I'm the Playwright bot. I removed the HAR filename changes as requested. Pavel Feldman (@pavelfeldman): HAR configuration and context creation now match The existing tracing test now checks that the default and isolated contexts' requests remain in their separate network logs after close. On Windows, the tracing and related tests passed on Chromium, Firefox and WebKit: 151 passed, 2 skipped. Build and full lint passed. The original shared-HAR-path behavior remains unchanged. |
708c420 to
584584e
Compare
|
closing per #44199 (comment) |
Test results for "MCP"5250 passed, 644 skipped Merge workflow run. |
Isolated contexts inherited the default context's HAR path, so their recordings overwrote each other and were then overwritten by the default context on close.
Keep the configured path for the default context and save each isolated context beside it, with its sanitized name before the extension. Reuse output-file numbering to avoid collisions and document the naming rule. The existing isolated-tab test now checks the HAR requests from the default context and two isolated contexts.
Fixes #44199
Verified on Windows: the regression fails without the fix and passes on Chromium, Firefox and WebKit. Related MCP tests: 125 passed, 10 skipped. Build and full lint passed.
Triaged on Windows by the Playwright bot - agent run