Bump playwright from 1.23.1 to 1.27.1 in /browser
Bumps playwright from 1.23.1 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
workers
option in theplaywright.config.ts
now 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
-
fde19c1
chore: mark 1.27.1 (#18011) -
04b3b71
cherry-pick(#18010): fix(generator): generate nice locators for arbitrary sel... -
3367ebd
cherry-pick(#17999): chore: don't fail on undefined video/trace (#18001) -
730d322
cherry-pick(#17907): docs: improve trace viewer + add video (#18000) -
384b710
cherry-pick(#17942): docs(release-notes): add missing reference to Page.getBy... -
df7906d
cherry-pick(#17959): chore: better integrity error message -
f87d6f2
cherry-pick(#17961): fix(codegen): use constants when generating C# and Java ... -
4ff2f3d
chery-pick(#17952): fix: fix typo in treeitem role typing (#17965) -
75aaaac
chery-pick(#17918): docs: AriaRole is enum (#17921) -
af0d293
cherry-pick(#17912): docs: mention thatexact
option is ignored for regex - 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