Skip to content

Commit

Permalink
chore(deps): update dependency @playwright/test to ~1.42.0 (#1415)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@playwright/test](https://playwright.dev)
([source](https://github.com/microsoft/playwright)) | [`~1.41.0` ->
`~1.42.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.41.2/1.42.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@playwright%2ftest/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@playwright%2ftest/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@playwright%2ftest/1.41.2/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@playwright%2ftest/1.41.2/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>microsoft/playwright (@&#8203;playwright/test)</summary>

###
[`v1.42.0`](https://github.com/microsoft/playwright/releases/tag/v1.42.0)

[Compare
Source](https://github.com/microsoft/playwright/compare/v1.41.2...v1.42.0)

#### New APIs

- New method
[page.addLocatorHandler()](https://playwright.dev/docs/api/class-page#page-add-locator-handler)
registers a callback that will be invoked when specified element becomes
visible and may block Playwright actions. The callback can get rid of
the overlay. Here is an example that closes a cookie dialog when it
appears:

```js
// Setup the handler.
await page.addLocatorHandler(
    page.getByRole('heading', { name: 'Hej! You are in control of your cookies.' }),
    async () => {
      await page.getByRole('button', { name: 'Accept all' }).click();
    });
// Write the test as usual.
await page.goto('https://www.ikea.com/');
await page.getByRole('link', { name: 'Collection of blue and white' }).click();
await expect(page.getByRole('heading', { name: 'Light and easy' })).toBeVisible();
```

- `expect(callback).toPass()` timeout can now be configured by
`expect.toPass.timeout` option
[globally](https://playwright.dev/docs/api/class-testconfig#test-config-expect)
or in [project
config](https://playwright.dev/docs/api/class-testproject#test-project-expect)
-
[electronApplication.on('console')](https://playwright.dev/docs/api/class-electronapplication#electron-application-event-console)
event is emitted when Electron main process calls console API methods.

```js
electronApp.on('console', async msg => {
  const values = [];
  for (const arg of msg.args())
    values.push(await arg.jsonValue());
  console.log(...values);
});
await electronApp.evaluate(() => console.log('hello', 5, { foo: 'bar' }));
```

- [New syntax](https://playwright.dev/docs/test-annotations#tag-tests)
for adding tags to the tests (@&#8203;-tokens in the test title are
still supported):

```js
test('test customer login', {
  tag: ['@&#8203;fast', '@&#8203;login'],
}, async ({ page }) => {
  // ...
});
```

Use `--grep` command line option to run only tests with certain tags.

```sh
npx playwright test --grep @&#8203;fast
```

- `--project` command line
[flag](https://playwright.dev/docs/test-cli#reference) now supports '\*'
wildcard:

```sh
npx playwright test --project='*mobile*'
```

- [New
syntax](https://playwright.dev/docs/test-annotations#annotate-tests) for
test annotations:

```js
test('test full report', {
  annotation: [
    { type: 'issue', description: 'microsoft/playwright#23180' },
    { type: 'docs', description: 'https://playwright.dev/docs/test-annotations#tag-tests' },
  ],
}, async ({ page }) => {
  // ...
});
```

- [page.pdf()](https://playwright.dev/docs/api/class-page#page-pdf)
accepts two new options
[`tagged`](https://playwright.dev/docs/api/class-page#page-pdf-option-tagged)
and
[`outline`](https://playwright.dev/docs/api/class-page#page-pdf-option-outline).

#### Announcements

-   ⚠️ Ubuntu 18 is not supported anymore.

#### Browser Versions

-   Chromium 123.0.6312.4
-   Mozilla Firefox 123.0
-   WebKit 17.4

This version was also tested against the following stable channels:

-   Google Chrome 122
-   Microsoft Edge 123

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
every weekday,every weekend" in timezone Europe/Paris, 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/AmadeusITGroup/otter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMTIuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIxMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
  • Loading branch information
kpanot committed Feb 28, 2024
2 parents c0b85a2 + 32e0eaf commit 3287096
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apps/showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@o3r/eslint-plugin": "workspace:^",
"@o3r/schematics": "workspace:^",
"@o3r/testing": "workspace:^",
"@playwright/test": "~1.41.0",
"@playwright/test": "~1.42.0",
"@schematics/angular": "~17.2.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
"@types/bootstrap": "^5.2.10",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"@o3r/eslint-plugin": "workspace:^",
"@o3r/telemetry": "workspace:^",
"@o3r/workspace": "workspace:^",
"@playwright/test": "~1.41.0",
"@playwright/test": "~1.42.0",
"@popperjs/core": "^2.11.5",
"@schematics/angular": "~17.2.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/@o3r/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@o3r/core": "workspace:^",
"@o3r/localization": "workspace:^",
"@o3r/schematics": "workspace:^",
"@playwright/test": "~1.41.0",
"@playwright/test": "~1.42.0",
"@schematics/angular": "~17.2.0",
"pixelmatch": "^5.2.1",
"pngjs": "^7.0.0",
Expand Down Expand Up @@ -185,7 +185,7 @@
"@o3r/localization": "workspace:^",
"@o3r/schematics": "workspace:^",
"@o3r/test-helpers": "workspace:^",
"@playwright/test": "~1.41.0",
"@playwright/test": "~1.42.0",
"@schematics/angular": "~17.2.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
"@types/jest": "~29.5.2",
Expand Down
36 changes: 18 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7552,7 +7552,7 @@ __metadata:
"@o3r/eslint-plugin": "workspace:^"
"@o3r/telemetry": "workspace:^"
"@o3r/workspace": "workspace:^"
"@playwright/test": "npm:~1.41.0"
"@playwright/test": "npm:~1.42.0"
"@popperjs/core": "npm:^2.11.5"
"@schematics/angular": "npm:~17.2.0"
"@stylistic/eslint-plugin-ts": "npm:^1.5.4"
Expand Down Expand Up @@ -8304,7 +8304,7 @@ __metadata:
"@o3r/rules-engine": "workspace:^"
"@o3r/schematics": "workspace:^"
"@o3r/testing": "workspace:^"
"@playwright/test": "npm:~1.41.0"
"@playwright/test": "npm:~1.42.0"
"@popperjs/core": "npm:^2.11.5"
"@schematics/angular": "npm:~17.2.0"
"@stylistic/eslint-plugin-ts": "npm:^1.5.4"
Expand Down Expand Up @@ -8799,7 +8799,7 @@ __metadata:
"@o3r/localization": "workspace:^"
"@o3r/schematics": "workspace:^"
"@o3r/test-helpers": "workspace:^"
"@playwright/test": "npm:~1.41.0"
"@playwright/test": "npm:~1.42.0"
"@schematics/angular": "npm:~17.2.0"
"@stylistic/eslint-plugin-ts": "npm:^1.5.4"
"@types/jest": "npm:~29.5.2"
Expand Down Expand Up @@ -8851,7 +8851,7 @@ __metadata:
"@o3r/core": "workspace:^"
"@o3r/localization": "workspace:^"
"@o3r/schematics": "workspace:^"
"@playwright/test": ~1.41.0
"@playwright/test": ~1.42.0
"@schematics/angular": ~17.2.0
pixelmatch: ^5.2.1
pngjs: ^7.0.0
Expand Down Expand Up @@ -9339,14 +9339,14 @@ __metadata:
languageName: node
linkType: hard

"@playwright/test@npm:~1.41.0":
version: 1.41.2
resolution: "@playwright/test@npm:1.41.2"
"@playwright/test@npm:~1.42.0":
version: 1.42.0
resolution: "@playwright/test@npm:1.42.0"
dependencies:
playwright: "npm:1.41.2"
playwright: "npm:1.42.0"
bin:
playwright: cli.js
checksum: 10/e87405987fa024f75acc223c47fcb2da0a66b2fa0cd9a583ca5b02aac12be353d0c262bf6a22b9bc40550c86c8b7629e70cd27f508ec370d9c92bb72f74581e7
checksum: 10/bb696e89da47dd1ab46201fa4652f331bea3b75e9c804e358f83216f69d83a972a302d249a8e4c08cbc8fc72110a6e62562e679a474b5ed6246f09a9fc9bda6b
languageName: node
linkType: hard

Expand Down Expand Up @@ -25169,27 +25169,27 @@ __metadata:
languageName: node
linkType: hard

"playwright-core@npm:1.41.2":
version: 1.41.2
resolution: "playwright-core@npm:1.41.2"
"playwright-core@npm:1.42.0":
version: 1.42.0
resolution: "playwright-core@npm:1.42.0"
bin:
playwright-core: cli.js
checksum: 10/77ff881ebb9cc0654edd00c5ff202f5f61aee7a5318e1f12a82e30a3636de21e8b5982fae6138e5bb90115ae509c15a640cf85b10b3e2daebb2bb286da54fd4c
checksum: 10/18caeb7e0a1194be7a0c6178d49a5960c55230958dea16be14da2c1f5426427f9f195b59a4c481d0f530d585fa381fc5fc7c82f2a45edd3628ee745df63e9e69
languageName: node
linkType: hard

"playwright@npm:1.41.2":
version: 1.41.2
resolution: "playwright@npm:1.41.2"
"playwright@npm:1.42.0":
version: 1.42.0
resolution: "playwright@npm:1.42.0"
dependencies:
fsevents: "npm:2.3.2"
playwright-core: "npm:1.41.2"
playwright-core: "npm:1.42.0"
dependenciesMeta:
fsevents:
optional: true
bin:
playwright: cli.js
checksum: 10/272399f622dc2df90fbef147b9b1cfab5d7a78cc364bdfa98d2bf08faa9894346f58629fe4fef41b108ca2cb203b3970d7886b7f392cb0399c75b521478e2920
checksum: 10/a900d377e20106f539ae3fde0e89468089d1bcdb766ecf00b883de49f6f164254df568971994eecec339238430656a17c8cbf28f881ceea42a62a143347bfa5c
languageName: node
linkType: hard

Expand Down

0 comments on commit 3287096

Please sign in to comment.