accessibility-insights-web
accessibility-insights-web copied to clipboard
chore(deps-dev): bump playwright from 1.26.0 to 1.27.1
Bumps playwright from 1.26.0 to 1.27.1.
Release notes
Sourced from playwright's releases.
v1.27.1
Highlights
This patch release includes the following bug fixes:
microsoft/playwright#18010 - fix(generator): generate nice locators for arbitrary selectors microsoft/playwright#17999 - chore: don't fail on undefined video/trace microsoft/playwright#17955 - [Question] Github Actions test compatibility check failed mitigation? microsoft/playwright#17960 - [BUG] Codegen 1.27 creates NUnit code that does not compile microsoft/playwright#17952 - fix: fix typo in treeitem role typing
Browser Versions
- Chromium 107.0.5304.18
- Mozilla Firefox 105.0.1
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 106
- Microsoft Edge 106
v1.27.0
Locators
With these new APIs, inspired by Testing Library, writing locators is a joy:
page.getByText(text, options)to locate by text content.page.getByRole(role, options)to locate by ARIA role, ARIA attributes and accessible name.page.getByLabel(label, options)to locate a form control by associated label's text.page.getByPlaceholder(placeholder, options)to locate an input by placeholder.page.getByAltText(altText, options)to locate an element, usually image, by its text alternative.page.getByTitle(title, options)to locate an element by its title.await page.getByLabel('User Name').fill('John');await page.getByLabel('Password').fill('secret-password');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page.getByText('Welcome, John!')).toBeVisible();
All the same methods are also available on Locator, FrameLocator and Frame classes.
Other highlights
workersoption in theplaywright.config.tsnow accepts a percentage string to use some of the available CPUs. You can also pass it in the command line:npx playwright test --workers=20%
... (truncated)
Commits
fde19c1chore: mark 1.27.1 (#18011)04b3b71cherry-pick(#18010): fix(generator): generate nice locators for arbitrary sel...3367ebdcherry-pick(#17999): chore: don't fail on undefined video/trace (#18001)730d322cherry-pick(#17907): docs: improve trace viewer + add video (#18000)384b710cherry-pick(#17942): docs(release-notes): add missing reference to Page.getBy...df7906dcherry-pick(#17959): chore: better integrity error messagef87d6f2cherry-pick(#17961): fix(codegen): use constants when generating C# and Java ...4ff2f3dchery-pick(#17952): fix: fix typo in treeitem role typing (#17965)75aaaacchery-pick(#17918): docs: AriaRole is enum (#17921)af0d293cherry-pick(#17912): docs: mention thatexactoption is ignored for regex- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)