kit
kit copied to clipboard
Update all non-major dependencies
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @playwright/test (source) | 1.25.0 -> 1.28.1 |
||||
| playwright (source) | 1.25.0 -> 1.28.1 |
||||
| pnpm (source) | 7.16.1 -> 7.17.0 |
||||
| undici (source) | 5.12.0 -> 5.13.0 |
Release Notes
Microsoft/playwright
v1.28.1
Highlights
This patch release includes the following bug fixes:
https://github.com/microsoft/playwright/issues/18928 - [BUG] Electron firstWindow times out after upgrading to 1.28.0https://github.com/microsoft/playwright/issues/189200 - [BUG] [expanded=false] in role selector returns elements without aria-expanded attribuhttps://github.com/microsoft/playwright/issues/18865865 - [BUG] regression in killing web server process in 1.28.0
Browser Versions
- Chromium 108.0.5359.29
- Mozilla Firefox 106.0
- WebKit 16.4
This version was also tested against the following stable channels:
- Google Chrome 107
- Microsoft Edge 107
v1.28.0: v1.28
Playwright Tools
- Record at Cursor in VSCode. You can run the test, position the cursor at the end of the test and continue generating the test.
- Live Locators in VSCode. You can hover and edit locators in VSCode to get them highlighted in the opened browser.
- Live Locators in CodeGen. Generate a locator for any element on the page using "Explore" tool.
- Codegen and Trace Viewer Dark Theme. Automatically picked up from operating system settings.
Test Runner
-
Configure retries and test timeout for a file or a test with
test.describe.configure([options]).// Each test in the file will be retried twice and have a timeout of 20 seconds. test.describe.configure({ retries: 2, timeout: 20_000 }); test('runs first', async ({ page }) => {}); test('runs second', async ({ page }) => {}); -
Use
testProject.snapshotPathTemplateandtestConfig.snapshotPathTemplateto configure a template controlling location of snapshots generated byexpect(page).toHaveScreenshot(name[, options])andexpect(screenshot).toMatchSnapshot(name[, options]).// playwright.config.ts import type { PlaywrightTestConfig } from '@​playwright/test'; const config: PlaywrightTestConfig = { testDir: './tests', snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}', }; export default config;
New APIs
locator.blur([options])locator.clear([options])android.launchServer([options])andandroid.connect(wsEndpoint[, options])androidDevice.on('close')
Browser Versions
- Chromium 108.0.5359.29
- Mozilla Firefox 106.0
- WebKit 16.4
This version was also tested against the following stable channels:
- Google Chrome 107
- Microsoft Edge 107
v1.27.1
Highlights
This patch release includes the following bug fixes:
https://github.com/microsoft/playwright/pull/18010 - fix(generator): generate nice locators for arbitrary selectors https://github.com/microsoft/playwright/pull/17999 - chore: don't fail on undefined video/trace https://github.com/microsoft/playwright/issues/17955 - [Question] Github Actions test compatibility check failed mitigation?https://github.com/microsoft/playwright/issues/179600 - [BUG] Codegen 1.27 creates NUnit code that does not compilhttps://github.com/microsoft/playwright/pull/1795252 - 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% -
New options
hostandportfor the html reporter.reporters: [['html', { host: 'localhost', port: '9223' }]] -
New field
FullConfig.configFileis 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 whenbuttondoes not have adisabledattribute.await expect(page.getByRole('button')).toHaveAttribute('disabled', ''); -
Command line options
--grepand--grep-invertpreviously incorrectly ignoredgrepandgrepInvertoptions specified in the config. Now all of them are applied together. -
JSON reporter path resolution is performed relative to the config directory instead of the current working directory:
["json", { outputFile: "./test-results/results.json" }]]
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.26.1
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/17500 - [BUG] No tests found using the test explorer - pw/[email protected]
Browser Versions
- Chromium 106.0.5249.30
- Mozilla Firefox 104.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 105
- Microsoft Edge 105
v1.26.0
Assertions
- New option enabled for
expect(locator).toBeEnabled([options]). expect(locator).toHaveText(expected[, options])now pierces open shadow roots.- New option editable for
expect(locator).toBeEditable([options]). - New option visible for
expect(locator).toBeVisible([options]).
Other Highlights
- New option
maxRedirectsforapiRequestContext.get(url[, options])and others to limit redirect count. - New command-line flag
--pass-with-no-teststhat allows the test suite to pass when no files are found. - New command-line flag
--ignore-snapshotsto skip snapshot expectations, such asexpect(value).toMatchSnapshot()andexpect(page).toHaveScreenshot().
Behavior Change
A bunch of Playwright APIs already support the waitUntil: 'domcontentloaded' option. For example:
await page.goto('https://playwright.dev', {
waitUntil: 'domcontentloaded',
});
Prior to 1.26, this would wait for all iframes to fire the DOMContentLoaded event.
To align with web specification, the 'domcontentloaded' value only waits for the target frame to fire the 'DOMContentLoaded' event. Use waitUntil: 'load' to wait for all iframes.
Browser Versions
- Chromium 106.0.5249.30
- Mozilla Firefox 104.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 105
- Microsoft Edge 105
v1.25.2
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/16937 - [REGRESSION]: session storage failing >= 1.25.0 in firefoxhttps://github.com/microsoft/playwright/issues/169555 - Not using channel on config file when Show and Reuse browser is checked
Browser Versions
- Chromium 105.0.5195.19
- Mozilla Firefox 103.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 104
- Microsoft Edge 104
v1.25.1
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/16319 - [BUG] webServer.command esbuild fails with ESM and Yarnhttps://github.com/microsoft/playwright/issues/164600 - [BUG] Component test fails on 2nd run when SSL is usehttps://github.com/microsoft/playwright/issues/1666565 - [BUG] custom selector engines don't work when running in debug mode
Browser Versions
- Chromium 105.0.5195.19
- Mozilla Firefox 103.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 104
- Microsoft Edge 104
pnpm/pnpm
v7.17.0
Minor Changes
- Added a new command
pnpm licenses list, which displays the licenses of the packages #2825
Patch Changes
pnpm update --latest !fooshould not update anything if the only dependency in the project is the ignored one #5643.pnpm auditshould send the versions of workspace projects for audit.- Hoisting with symlinks should not override external symlinks and directories in the root of node_modules.
- The
pnpm.updateConfig.ignoreDependenciessetting should work with multiple dependencies in the array #5639.
Our Gold Sponsors
|
|
|
|
|
|
Our Silver Sponsors
|
|
|
|
|
nodejs/undici
v5.13.0
What's Changed
- fix(wpt): move formdata tests to correct folder by @KhafraDev in https://github.com/nodejs/undici/pull/1739
- fix(fetch): set Symbol.toStringTag properly on classes by @KhafraDev in https://github.com/nodejs/undici/pull/1742
- fetch: implement isomorphic encoding by @KhafraDev in https://github.com/nodejs/undici/pull/1741
- fetch: implement isomorphic decoding by @KhafraDev in https://github.com/nodejs/undici/pull/1743
- fetch: update extractBody to better match spec by @KhafraDev in https://github.com/nodejs/undici/pull/1745
- chore(docs/assets): compress image by @Fdawgs in https://github.com/nodejs/undici/pull/1749
- feat: implement
8.2 Set request’s referrer policy on redirectby @metcoder95 in https://github.com/nodejs/undici/pull/1717 - fetch: remove duplicate checks by @KhafraDev in https://github.com/nodejs/undici/pull/1751
- webidl: small changes by @KhafraDev in https://github.com/nodejs/undici/pull/1754
- webidl: add
argumentLengthCheckguard by @KhafraDev in https://github.com/nodejs/undici/pull/1755 - feat(MockInterceptor): allow async reply callbacks by @KhafraDev in https://github.com/nodejs/undici/pull/1758
- Fix filereader types by @KhafraDev in https://github.com/nodejs/undici/pull/1762
- types: Refine internal TS export/imports to be more robust by @kibertoad in https://github.com/nodejs/undici/pull/1769
- fix: remove unnecessary toLowerCase by @anonrig in https://github.com/nodejs/undici/pull/1771
- perf: simplify isValidHeaderName by @anonrig in https://github.com/nodejs/undici/pull/1772
- fetch(HeadersList): s/has/contains by @KhafraDev in https://github.com/nodejs/undici/pull/1775
- fix(fetch): match spec text by @KhafraDev in https://github.com/nodejs/undici/pull/1777
- wpt: add gzip-body.any.js by @KhafraDev in https://github.com/nodejs/undici/pull/1778
- feat: more informative error messages by @benmccann in https://github.com/nodejs/undici/pull/1781
- perf(fetch): simplify url serializer by @anonrig in https://github.com/nodejs/undici/pull/1774
- fix(fetch): remove unnecessary encode operation by @anonrig in https://github.com/nodejs/undici/pull/1773
- chore(doc/fetch) update doc for fetch duplex (#1760) by @zizifn in https://github.com/nodejs/undici/pull/1765
New Contributors
- @benmccann made their first contribution in https://github.com/nodejs/undici/pull/1781
- @zizifn made their first contribution in https://github.com/nodejs/undici/pull/1765
Full Changelog: https://github.com/nodejs/undici/compare/v5.12.0...v5.13.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
⚠️ No Changeset found
Latest commit: c36d9bbdaf01b8c83879627af71497e648df7fb0
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
we're gonna have to try and isolate this webkit/playwright bug and send them an issue, otherwise we'll be stuck on 1.25 forever
man, I can't reproduce this failure outside our test suite. No idea what's going on
breaking change in playwright? it's really shitting the bed this time
ah: https://github.com/sveltejs/kit/pull/7696#issue-1452459231 / https://github.com/microsoft/playwright/issues/18865