Bump playwright from 1.16.3 to 1.23.0 in /browser
Bumps playwright from 1.16.3 to 1.23.0.
Release notes
Sourced from playwright's releases.
v1.23.0
Network Replay
Now you can record network traffic into a HAR file and re-use the data in your tests.
To record network into HAR file:
npx playwright open --save-har=github.har.zip https://github.com/microsoft
Alternatively, you can record HAR programmatically:
const context = await browser.newContext({ recordHar: { path: 'github.har.zip' } }); // ... do stuff ... await context.close();
Use the new methods
page.routeFromHAR()
orbrowserContext.routeFromHAR()
to serve matching responses from the HAR file:await context.routeFromHAR('github.har.zip');
Read more in our documentation.
Advanced Routing
You can now use
route.fallback()
to defer routing to other handlers.Consider the following example:
// Remove a header from all requests. test.beforeEach(async ({ page }) => { await page.route('**/*', route => { const headers = route.request().headers(); delete headers['if-none-match']; route.fallback({ headers }); }); }); test('should work', async ({ page }) => { await page.route('**/*', route => { if (route.request().resourceType() === 'image') </tr></table>
... (truncated)
Commits
-
5c6335e
cherry-pick(#15152): chore: undeprecate sync headers() -
29ec22b
cherry-pick(#15111): feat(chromium): roll to r1012 (#15144) -
8f292e0
cherry-pick(#15112): fix(route): match against updated url while chaining -
270675a
cherry-pick(#15097): docs: recordHar content and mode options for lan… (#15098) -
7b78e71
cherry-pick(#15093): chore: fix api.json -
c74c9a3
chore: mark v1.23.0 (#15091) -
c175d6f
cherry-pick(#15090): docs: add release notes for 1.23 javascript (#15092) -
7f74063
cherry-pick(#15053): feat(har): introduce the slim mode -
d3e8066
cherry-pick(#15046): fix(har): remove types/har.d.ts, update har.ts per spec ... -
c840a28
cherry-pick(#15024): feat(har): re-add routeFromHAR (#15047) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts