⬆ ️ deps(dev): Bump @playwright/test from 1.17.1 to 1.21.0
Bumps @playwright/test from 1.17.1 to 1.21.0.
Release notes
Sourced from @playwright/test
's releases.
v1.21.0
Highlights
New experimental role selectors that allow selecting elements by their ARIA role, ARIA attributes and accessible name.
// Click a button with accessible name "log in" await page.click('role=button[name="log in"]')
To use role selectors, make sure to pass
PLAYWRIGHT_EXPERIMENTAL_FEATURES=1
environment variable:// playwright.config.js process.env.PLAYWRIGHT_EXPERIMENTAL_FEATURES = '1'; module.exports = { /* ... */ };
Read more in our documentation.
New
scale
option inPage.screenshot
for smaller sized screenshots.New
caret
option inPage.screenshot
to control text caret. Defaults to"hide"
.New method
expect.poll
to wait for an arbitrary condition:// Poll the method until it returns an expected result. await expect.poll(async () => { const response = await page.request.get('https://api.example.com'); return response.status(); }).toBe(200);
expect.poll
supports most synchronous matchers, like.toBe()
,.toContain()
, etc. Read more in our documentation.Behavior Changes
- ESM support when running TypeScript tests is now enabled by default. The
PLAYWRIGHT_EXPERIMENTAL_TS_ESM
env variable is no longer required.- The
mcr.microsoft.com/playwright
docker image no longer contains Python. Please usemcr.microsoft.com/playwright/python
as a Playwright-ready docker image with pre-installed Python.- Playwright now supports large file uploads (100s of MBs) via
Locator.setInputFiles
API.Browser Versions
- Chromium 101.0.4951.26
- Mozilla Firefox 98.0.2
- WebKit 15.4
... (truncated)
Commits
-
9530038
chore: mark v1.21.0 (#13416) -
02f4cfd
cherry-pick(#13491): release notes for 1.21 (#13493) -
414cc9b
cherry-pick(#13487): do not require--force
flag when installing channel on... -
fe8dad0
docs: mark fetch params as optional again (#13479) (#13480) -
9dbc124
cherry-pick(#13464): fix test.step return type docs (#13478) -
1756566
cherry-pick(#13443, #13407): feat(webkit): roll to r1630 (#13476) -
06d100d
cherry-pick(#13437): chore: flatten supplements -
bb810f5
cherry-pick(#13431): docs(java): clarify source list format (#13434) -
ee0119f
cherry-pick(#13425): docs(dotnet): fix broken generated docs links (#13430) -
14a241e
cherry-pick(#13417): chore: use utils via index export (6) - Additional commits viewable in compare view