Unverified Commit 15b68d4c authored by Andrew Gadzik's avatar Andrew Gadzik Committed by GitHub

Enable all pages under the browser context to proxy to the test proxy (#63610)

This fixes an issue when playwright spawns a new page from the same
context (a popup window) where requests were not being proxied correctly
Co-authored-by: 's avatarShu Ding <g@shud.in>
parent c21b8f5a
......@@ -26,9 +26,11 @@ class NextFixtureImpl implements NextFixture {
}
const handleFetch = this.handleFetch.bind(this)
worker.onFetch(this.testId, handleFetch)
this.page.route('**', (route) =>
handleRoute(route, page, testHeaders, handleFetch)
)
this.page
.context()
.route('**', (route) =>
handleRoute(route, page, testHeaders, handleFetch)
)
}
teardown(): void {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment