Bump playwright from 1.23.1 to 1.29.0 in /browser
Bumps playwright from 1.23.1 to 1.29.0.
Release notes
Sourced from playwright's releases.
v1.29.0
New APIs
New method
route.fetch()
and new optionjson
forroute.fulfill()
:await page.route('**/api/settings', async route => { // Fetch original settings. const response = await route.fetch(); // Force settings theme to a predefined value. const json = await response.json(); json.theme = 'Solorized'; // Fulfill with modified data. await route.fulfill({ json }); });
New method
locator.all()
to iterate over all matching elements:// Check all checkboxes! const checkboxes = page.getByRole('checkbox'); for (const checkbox of await checkboxes.all()) await checkbox.check();
Retry blocks of code until all assertions pass:
await expect(async () => { const response = await page.request.get('https://api.example.com'); await expect(response).toBeOK(); }).toPass();
Read more in our documentation.
Automatically capture full page screenshot on test failure:
// playwright.config.ts import type { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { use: { screenshot: { mode: 'only-on-failure', fullPage: true, }
... (truncated)
Commits
-
00895e3
cherry-pick(#19532): docs: remove Serializable from Route.*.postData in java ... -
0cf3ec2
cherry-pick(#19527): docs: route.fetch.postData in java (#19528) -
5c3be30
chore: mark 1.29.0 (#19491) -
a100191
cherry-pick(#19497): chore: release notes 1.29 -
4b87115
chery-pick(#19509): docs: fix locator all since version (#19521) -
8a9692e
chery-pick(#19507): docs: fix HTML snippets (#19508) -
1263bc3
feat(console api): first/last/nth (#19485) -
3afd83c
chore: withdraw locator.enumerate (#19484) -
7bc184f
chore: recorder button styling (#19231) -
e7088cc
feat(firefox): roll to r1369 (#19465) - 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