Skip to content

Commit

Permalink
fix(deps): update playwright monorepo to ^1.42.0 (#2503)
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://togithub.com/microsoft/playwright)) | [`^1.41.2` ->
`^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/)
|
| [playwright](https://playwright.dev)
([source](https://togithub.com/microsoft/playwright)) | [`^1.41.2` ->
`^1.42.0`](https://renovatebot.com/diffs/npm/playwright/1.41.2/1.42.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/playwright/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/playwright/1.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/playwright/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/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://togithub.com/microsoft/playwright/releases/tag/v1.42.0)

[Compare
Source](https://togithub.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 - 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 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/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMTIuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIxMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Feb 27, 2024
1 parent 6814538 commit ff4f84f
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion chromeless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@previewjs/vfs": "^2.1.2",
"express": "^4.18.2",
"pino": "^8.19.0",
"playwright": "^1.41.2",
"playwright": "^1.42.0",
"typescript": "^5.3.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typescript": "^5.3.3"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/api": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@vitejs/plugin-react": "^4.2.1"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/api": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"vite-plugin-solid": "^2.10.1"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"vite": "^5.1.4"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vue-template-compiler": "^2.7.16"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"vue": "^3.4.20"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
56 changes: 28 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion screenshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@previewjs/core": "^29.0.1",
"@previewjs/plugin-react": "^16.0.1",
"globby": "^14.0.1",
"playwright": "^1.41.2"
"playwright": "^1.42.0"
},
"devDependencies": {
"@types/node": "^20.10.6",
Expand Down
2 changes: 1 addition & 1 deletion screenshot/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"playwright": "^1.41.2",
"playwright": "^1.42.0",
"typescript": "^5.3.3",
"vite": "^5.1.4"
}
Expand Down
2 changes: 1 addition & 1 deletion testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "rimraf dist && tsc && unbuild"
},
"dependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.0",
"@previewjs/api": "^16.0.4",
"@previewjs/chromeless": "^13.0.0",
"@previewjs/core": "^29.0.1",
Expand Down

0 comments on commit ff4f84f

Please sign in to comment.