Chore(deps): bump playwright from 1.35.0 to 1.44.0 in /pnpm
Bumps playwright from 1.35.0 to 1.44.0.
Release notes
Sourced from playwright's releases.
v1.44.0
New APIs
Accessibility assertions
expect(locator).toHaveAccessibleName() checks if the element has the specified accessible name:
const locator = page.getByRole('button'); await expect(locator).toHaveAccessibleName('Submit');
expect(locator).toHaveAccessibleDescription() checks if the element has the specified accessible description:
const locator = page.getByRole('button'); await expect(locator).toHaveAccessibleDescription('Upload a photo');
expect(locator).toHaveRole() checks if the element has the specified ARIA role:
const locator = page.getByTestId('save-button'); await expect(locator).toHaveRole('button');
Locator handler
- After executing the handler added with page.addLocatorHandler(), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new
noWaitAfter
option.- You can use new
times
option in page.addLocatorHandler() to specify maximum number of times the handler should be run.- The handler in page.addLocatorHandler() now accepts the locator as argument.
- New page.removeLocatorHandler() method for removing previously added locator handlers.
const locator = page.getByText('This interstitial covers the button'); await page.addLocatorHandler(locator, async overlay => { await overlay.locator('#close').click(); }, { times: 3, noWaitAfter: true }); // Run your tests that can be interrupted by the overlay. // ... await page.removeLocatorHandler(locator);
Miscellaneous options
multipart
option inapiRequestContext.fetch()
now acceptsFormData
and supports repeating fields with the same name.const formData = new FormData(); formData.append('file', new File(['let x = 2024;'], 'f1.js', { type: 'text/javascript' })); formData.append('file', new File(['hello'], 'f2.txt', { type: 'text/plain' })); context.request.post('https://example.com/uploadFiles', { multipart: formData
... (truncated)
Commits
-
a6aa50b
chore: set version to 1.44.0 (#30680) -
54c157d
cherry-pick(#30677): chore: print resolved host in the http server te… (#30679) -
2d437e8
cherry-pick(#30646): feat(chromium): roll to r1117 (#30652) -
7637399
cherry-pick(#30636): fix(role): extract tagName safely (#30639) -
9e091e7
cherry-pick(#30611): chore: add common env vars for junit and json re… (#30624) -
154694b
chore: update playwright-browsers to Mar 19 (#30599) -
fa7d4e5
docs: releae notes 1.44 for js (#30596) -
b9f70f4
docs(junit): document existing options and env (#30595) -
fb90797
fix(last-run): remove globalOutputDir (#30571) -
96f3d19
feat(ctrl_or_meta): add a universal ctrl-meta modifier (#30572) - Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by yurys, a new releaser for playwright since your current version.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts
Merge request reports
Activity
added dependencies javascript labels
mentioned in merge request !1273 (closed)
This merge request has been superseded by Chore(deps): bump playwright from 1.35.0 to 1.4... (!1305 - closed)