Bump playwright from 1.23.1 to 1.27.0 in /browser
Bumps playwright from 1.23.1 to 1.27.0.
Release notes
Sourced from playwright's releases.
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%
New options
host
andport
for the html reporter.reporters: [['html', { host: 'localhost', port: '9223' }]]
New field
FullConfig.configFile
is available to test reporters, specifying the path to the config file if any.As announced in v1.25, Ubuntu 18 will not be supported as of Dec 2022. In addition to that, there will be no WebKit updates on Ubuntu 18 starting from the next Playwright release.
Behavior Changes
expect(locator).toHaveAttribute(name, value, options)
with an empty value does not match missing attribute anymore. For example, the following snippet will succeed whenbutton
does not have adisabled
attribute.await expect(page.getByRole('button')).toHaveAttribute('disabled', '');
Command line options
--grep
and--grep-invert
previously incorrectly ignoredgrep
andgrepInvert
options specified in the config. Now all of them are applied together.Browser Versions
... (truncated)
Commits
-
af0d293
cherry-pick(#17912): docs: mention thatexact
option is ignored for regex -
c05225f
cherry-pick(#17896): chore: make local docker build work on branch (#17906) -
3f0af1e
cherry-pick(#17893): fix(locators): make regex escape work when multiple spac... -
923a583
cherry-pick(#17888): chore: make role name case-insensitive -
b85b1ec
cherry-pick(#17886): docs: v1.27 release notes for python, java and dotnet -
299bcea
cherry-pick(#17885): feat(api): make aria roles an enum -
03c7f9c
cherry-pick(#17879): test: rebaseline requestStorageAccess test for firefox-b... -
3bf42ce
cherry-pick(#17864): test: fix "getByText should work" with tracing enabled, ... -
2993281
cherry-pick(#17863): chore(docker): make sure failed commands exit with non-z... -
1bc426b
cherry-pick(#17862): fix(esm+tsconfig): allow mapped ts files in esm mode - 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