Commit 3764076
authored
chore(deps): update dependency @playwright/test to v1.55.0 (#425)
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [@playwright/test](https://playwright.dev)
([source](https://redirect.github.com/microsoft/playwright)) | [`1.49.1`
->
`1.55.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.49.1/1.55.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>microsoft/playwright (@​playwright/test)</summary>
###
[`v1.55.0`](https://redirect.github.com/microsoft/playwright/compare/v1.54.2...f992162f04ae0b0b5a0f4b6114b894215be98995)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.54.2...v1.55.0)
###
[`v1.54.2`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.54.2)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.54.1...v1.54.2)
##### Highlights
[https://github.com/microsoft/playwright/issues/36714](https://redirect.github.com/microsoft/playwright/issues/36714)
- \[Regression]: Codegen is not able to launch in Administrator Terminal
on Windows (ProtocolError: Protocol
error)[https://github.com/microsoft/playwright/issues/36828](https://redirect.github.com/microsoft/playwright/issues/36828)8
- \[Regression]: Playwright Codegen keeps spamming with selected
optio[https://github.com/microsoft/playwright/issues/36810](https://redirect.github.com/microsoft/playwright/issues/36810)10
- \[Regression]: Starting Codegen with target language doesn't work
anymore
#### Browser Versions
- Chromium 139.0.7258.5
- Mozilla Firefox 140.0.2
- WebKit 26.0
This version was also tested against the following stable channels:
- Google Chrome 140
- Microsoft Edge 140
###
[`v1.54.1`](https://redirect.github.com/microsoft/playwright/compare/v1.54.0...v1.54.1)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.54.0...v1.54.1)
###
[`v1.54.0`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.54.0)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.53.2...v1.54.0)
#### Highlights
- New cookie property `partitionKey` in
[browserContext.cookies()](https://playwright.dev/docs/api/class-browsercontext#browser-context-cookies)
and
[browserContext.addCookies()](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-cookies).
This property allows to save and restore partitioned cookies. See [CHIPS
MDN
article](https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies)
for more information. Note that browsers have different support and
defaults for cookie partitioning.
- New option `noSnippets` to disable code snippets in the html report.
```js
import { defineConfig } from '@​playwright/test';
export default defineConfig({
reporter: [['html', { noSnippets: true }]]
});
```
- New property `location` in test annotations, for example in
[testResult.annotations](https://playwright.dev/docs/api/class-testresult#test-result-annotations)
and
[testInfo.annotations](https://playwright.dev/docs/api/class-testinfo#test-info-annotations).
It shows where the annotation like `test.skip` or `test.fixme` was
added.
#### Command Line
- New option `--user-data-dir` in multiple commands. You can specify the
same user data dir to reuse browsing state, like authentication, between
sessions.
```bash
npx playwright codegen --user-data-dir=./user-data
```
- Option `-gv` has been removed from the `npx playwright test` command.
Use `--grep-invert` instead.
- `npx playwright open` does not open the test recorder anymore. Use
`npx playwright codegen` instead.
#### Miscellaneous
- Support for Node.js 16 has been removed.
- Support for Node.js 18 has been deprecated, and will be removed in the
future.
#### Browser Versions
- Chromium 139.0.7258.5
- Mozilla Firefox 140.0.2
- WebKit 26.0
This version was also tested against the following stable channels:
- Google Chrome 140
- Microsoft Edge 140
###
[`v1.53.2`](https://redirect.github.com/microsoft/playwright/compare/v1.53.1...8c38de4d13d1e8e28cc97d4ad81cc398a6b2fb32)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.53.1...v1.53.2)
###
[`v1.53.1`](https://redirect.github.com/microsoft/playwright/compare/v1.53.0...3c60cb476613ee50c040b488d96f390be3985a89)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.53.0...v1.53.1)
###
[`v1.53.0`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.53.0)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.52.0...v1.53.0)
#### Trace Viewer and HTML Reporter Updates
- New Steps in Trace Viewer and HTML reporter: <img
src="https://github.com/user-attachments/assets/1963ff7d-4070-41be-a79b-4333176921a2"
alt="New Trace Viewer Steps" height="500">
- New option in `'html'` reporter to set the title of a specific test
run:
```js
import { defineConfig } from '@​playwright/test';
export default defineConfig({
reporter: [['html', { title: 'Custom test run #​1028' }]]
});
```
#### Miscellaneous
- New option
[`kind`](https://playwright.dev/docs/api/class-testinfo#test-info-snapshot-path-option-kind)
in
[testInfo.snapshotPath()](https://playwright.dev/docs/api/class-testinfo#test-info-snapshot-path)
controls which snapshot path template is used.
- New method
[locator.describe()](https://playwright.dev/docs/api/class-locator#locator-describe)
to describe a locator. Used for trace viewer and reports.
```js
const button = page.getByTestId('btn-sub').describe('Subscribe button');
await button.click();
```
- `npx playwright install --list` will now list all installed browsers,
versions and locations.
#### Browser Versions
- Chromium 138.0.7204.4
- Mozilla Firefox 139.0
- WebKit 18.5
This version was also tested against the following stable channels:
- Google Chrome 137
- Microsoft Edge 137
###
[`v1.52.0`](https://redirect.github.com/microsoft/playwright/compare/v1.51.1...471930b1ceae03c9e66e0eb80c1364a1a788e7db)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.51.1...v1.52.0)
###
[`v1.51.1`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.51.1)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.51.0...v1.51.1)
##### Highlights
[https://github.com/microsoft/playwright/issues/35093](https://redirect.github.com/microsoft/playwright/issues/35093)
- \[Regression]: TimeoutOverflowWarning:
[`2149630`](https://redirect.github.com/microsoft/playwright/commit/2149630296).634
does not fit into a 32-bit signed integer
[https://github.com/microsoft/playwright/issues/35138](https://redirect.github.com/microsoft/playwright/issues/35138)
- \[Regression]: TypeError: Cannot read properties of undefined (reading
'expectInfo')
#### Browser Versions
- Chromium 134.0.6998.35
- Mozilla Firefox 135.0
- WebKit 18.4
This version was also tested against the following stable channels:
- Google Chrome 133
- Microsoft Edge 133
###
[`v1.51.0`](https://redirect.github.com/microsoft/playwright/compare/v1.50.1...3707a93754368ec1e0e2876767e8a9209f036f8a)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.50.1...v1.51.0)
###
[`v1.50.1`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.50.1)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.50.0...v1.50.1)
##### Highlights
[https://github.com/microsoft/playwright/issues/34483](https://redirect.github.com/microsoft/playwright/issues/34483)
- \[Feature]: single aria snapshot for different
engines/browsers[https://github.com/microsoft/playwright/issues/34497](https://redirect.github.com/microsoft/playwright/issues/34497)7
- \[Bug]: Firefox not handling keepalive: true fetch
request[https://github.com/microsoft/playwright/issues/34504](https://redirect.github.com/microsoft/playwright/issues/34504)04
- \[Bug]: update snapshots not creating good
dif[https://github.com/microsoft/playwright/issues/34507](https://redirect.github.com/microsoft/playwright/issues/34507)507
- \[Bug]: snapshotPathTemplate doesnt work when multiple
proje[https://github.com/microsoft/playwright/issues/34462](https://redirect.github.com/microsoft/playwright/issues/34462)4462
- \[Bug]: updateSnapshots "changed" throws an error
#### Browser Versions
- Chromium 133.0.6943.16
- Mozilla Firefox 134.0
- WebKit 18.2
This version was also tested against the following stable channels:
- Google Chrome 132
- Microsoft Edge 132
###
[`v1.50.0`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.50.0)
[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.49.1...v1.50.0)
#### Test runner
- New option
[`timeout`](https://playwright.dev/docs/api/class-test#test-step-option-timeout)
allows specifying a maximum run time for an individual test step. A
timed-out step will fail the execution of the test.
```js
test('some test', async ({ page }) => {
await test.step('a step', async () => {
// This step can time out separately from the test
}, { timeout: 1000 });
});
```
- New method
[test.step.skip()](https://playwright.dev/docs/api/class-test#test-step-skip)
to disable execution of a test step.
```js
test('some test', async ({ page }) => {
await test.step('before running step', async () => {
// Normal step
});
await test.step.skip('not yet ready', async () => {
// This step is skipped
});
await test.step('after running step', async () => {
// This step still runs even though the previous one was skipped
});
});
```
- Expanded
[expect(locator).toMatchAriaSnapshot()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-match-aria-snapshot-2)
to allow storing of aria snapshots in separate YAML files.
- Added method
[expect(locator).toHaveAccessibleErrorMessage()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-accessible-error-message)
to assert the Locator points to an element with a given [aria
errormessage](https://w3c.github.io/aria/#aria-errormessage).
- Option
[testConfig.updateSnapshots](https://playwright.dev/docs/api/class-testconfig#test-config-update-snapshots)
added the configuration enum `changed`. `changed` updates only the
snapshots that have changed, whereas `all` now updates all snapshots,
regardless of whether there are any differences.
- New option
[testConfig.updateSourceMethod](https://playwright.dev/docs/api/class-testconfig#test-config-update-source-method)
defines the way source code is updated when
[testConfig.updateSnapshots](https://playwright.dev/docs/api/class-testconfig#test-config-update-snapshots)
is configured. Added `overwrite` and `3-way` modes that write the
changes into source code, on top of existing `patch` mode that creates a
patch file.
```bash
npx playwright test --update-snapshots=changed
--update-source-method=3way
```
- Option
[testConfig.webServer](https://playwright.dev/docs/api/class-testconfig#test-config-web-server)
added a `gracefulShutdown` field for specifying a process kill signal
other than the default `SIGKILL`.
- Exposed
[testStep.attachments](https://playwright.dev/docs/api/class-teststep#test-step-attachments)
from the reporter API to allow retrieval of all attachments created by
that step.
- New option `pathTemplate` for `toHaveScreenshot` and
`toMatchAriaSnapshot` assertions in the
[testConfig.expect](https://playwright.dev/docs/api/class-testconfig#test-config-expect)
configuration.
#### UI updates
- Updated default HTML reporter to improve display of attachments.
- New button for picking elements to produce aria snapshots.
- Additional details (such as keys pressed) are now displayed alongside
action API calls in traces.
- Display of `canvas` content in traces is error-prone. Display is now
disabled by default, and can be enabled via the `Display canvas content`
UI setting.
- `Call` and `Network` panels now display additional time information.
#### Breaking
-
[expect(locator).toBeEditable()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-editable)
and
[locator.isEditable()](https://playwright.dev/docs/api/class-locator#locator-is-editable)
now throw if the target element is not `<input>`, `<select>`, or a
number of other editable elements.
- Option
[testConfig.updateSnapshots](https://playwright.dev/docs/api/class-testconfig#test-config-update-snapshots)
now updates all snapshots when set to `all`, rather than only the
failed/changed snapshots. Use the new enum `changed` to keep the old
functionality of only updating the changed snapshots.
#### Browser Versions
- Chromium 133.0.6943.16
- Mozilla Firefox 134.0
- WebKit 18.2
This version was also tested against the following stable channels:
- Google Chrome 132
- Microsoft Edge 132
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/cedarjs/cedar).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2hhbmdlc2V0cy1vayIsInJlbGVhc2U6ZGVwZW5kZW5jeSJdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 62d4fd5 commit 3764076
3 files changed
+18
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3794 | 3794 | | |
3795 | 3795 | | |
3796 | 3796 | | |
3797 | | - | |
| 3797 | + | |
3798 | 3798 | | |
3799 | 3799 | | |
3800 | 3800 | | |
| |||
8606 | 8606 | | |
8607 | 8607 | | |
8608 | 8608 | | |
8609 | | - | |
8610 | | - | |
8611 | | - | |
| 8609 | + | |
| 8610 | + | |
| 8611 | + | |
8612 | 8612 | | |
8613 | | - | |
| 8613 | + | |
8614 | 8614 | | |
8615 | 8615 | | |
8616 | | - | |
| 8616 | + | |
8617 | 8617 | | |
8618 | 8618 | | |
8619 | 8619 | | |
| |||
26173 | 26173 | | |
26174 | 26174 | | |
26175 | 26175 | | |
26176 | | - | |
26177 | | - | |
26178 | | - | |
| 26176 | + | |
| 26177 | + | |
| 26178 | + | |
26179 | 26179 | | |
26180 | 26180 | | |
26181 | | - | |
| 26181 | + | |
26182 | 26182 | | |
26183 | 26183 | | |
26184 | 26184 | | |
26185 | | - | |
26186 | | - | |
26187 | | - | |
| 26185 | + | |
| 26186 | + | |
| 26187 | + | |
26188 | 26188 | | |
26189 | 26189 | | |
26190 | | - | |
| 26190 | + | |
26191 | 26191 | | |
26192 | 26192 | | |
26193 | 26193 | | |
26194 | 26194 | | |
26195 | 26195 | | |
26196 | | - | |
| 26196 | + | |
26197 | 26197 | | |
26198 | 26198 | | |
26199 | 26199 | | |
| |||
28122 | 28122 | | |
28123 | 28123 | | |
28124 | 28124 | | |
28125 | | - | |
| 28125 | + | |
28126 | 28126 | | |
28127 | 28127 | | |
28128 | 28128 | | |
| |||
0 commit comments