Skip to content

Commit

Permalink
fix(deps): update playwright monorepo to ~1.32.0 (#1484)
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.29.2` ->
`~1.32.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.29.2/1.32.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.32.0/compatibility-slim/1.29.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.32.0/confidence-slim/1.29.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [playwright](https://playwright.dev)
([source](https://github.com/Microsoft/playwright)) | [`~1.29.2` ->
`~1.32.0`](https://renovatebot.com/diffs/npm/playwright/1.29.2/1.32.0) |
[![age](https://badges.renovateapi.com/packages/npm/playwright/1.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/playwright/1.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/playwright/1.32.0/compatibility-slim/1.29.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/playwright/1.32.0/confidence-slim/1.29.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Microsoft/playwright</summary>

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

[Compare
Source](https://github.com/Microsoft/playwright/compare/v1.31.2...v1.32.0)

##### 📣 Introducing UI Mode (preview)

<a href="https://www.youtube.com/watch?v=jF0yA-JLQW0"><img
src="https://user-images.githubusercontent.com/746130/227044467-b4db82dc-c7fa-40d7-a0c8-8f702581c3b9.png"
width=340></a>

<a href="https://www.youtube.com/watch?v=jF0yA-JLQW0">Playwright v1.32
updates</a>

New UI Mode lets you explore, run and debug tests. Comes with a built-in
watch mode.

![Playwright UI
Mode](https://user-images.githubusercontent.com/746130/227004851-3901a691-4f8e-43d6-8d6b-cbfeafaeb999.png)

Engage with a new flag `--ui`:

```sh
npx playwright test --ui
```

##### New APIs

- New options `option: updateMode` and `option: updateContent` in
[`page.routeFromHAR()`](https://playwright.dev/docs/api/class-page#page-route-from-har)
and
[`browserContext.routeFromHAR()`](https://playwright.dev/docs/api/class-browsercontext#browser-context-route-from-har).
- Chaining existing locator objects, see [locator
docs](https://playwright.dev/docs/locators#chaining-locators) for
details.
- New property
[`TestInfo.testId`](https://playwright.dev/docs/api/class-testinfo#test-info-test-id).
- New option `name` in method
[`Tracing.startChunk()`](https://playwright.dev/docs/api/class-tracing#tracing-start-chunk).

##### ⚠️ Breaking change in component tests

Note: **component tests only**, does not affect end-to-end tests.

-   `@playwright/experimental-ct-react` now supports **React 18 only**.
- If you're running component tests with React 16 or 17, please replace
`@playwright/experimental-ct-react` with
`@playwright/experimental-ct-react17`.

##### Browser Versions

-   Chromium 112.0.5615.29
-   Mozilla Firefox 111.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 111
-   Microsoft Edge 111

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

[Compare
Source](https://github.com/Microsoft/playwright/compare/v1.31.1...v1.31.2)

#### Highlights


[https://github.com/microsoft/playwright/issues/20784](https://github.com/microsoft/playwright/issues/20784)
- \[BUG] ECONNREFUSED on GitHub Actions with Node
18[https://github.com/microsoft/playwright/issues/21145](https://github.com/microsoft/playwright/issues/21145)5
- \[REGRESSION]: firefox-1378 times out on await page.reload() when URL
contains a
#has[https://github.com/microsoft/playwright/issues/21226](https://github.com/microsoft/playwright/issues/21226)26
- \[BUG] Playwright seems to get stuck when using shard option and last
test is
skipp[https://github.com/microsoft/playwright/issues/21227](https://github.com/microsoft/playwright/issues/21227)227
- Using the webServer config with a Vite dev
serve[https://github.com/microsoft/playwright/issues/21312](https://github.com/microsoft/playwright/issues/21312)312
- throw if defineConfig is not used for component testing

#### Browser Versions

-   Chromium 111.0.5563.19
-   Mozilla Firefox 109.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 110
-   Microsoft Edge 110

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

[Compare
Source](https://github.com/Microsoft/playwright/compare/v1.31.0...v1.31.1)

##### Highlights


[https://github.com/microsoft/playwright/issues/21093](https://github.com/microsoft/playwright/issues/21093)
- \[Regression v1.31] Headless Windows shows cascading cmd
windows[https://github.com/microsoft/playwright/pull/21106](https://github.com/microsoft/playwright/pull/21106)6
- fix(loader): experimentalLoader with node@18

##### Browser Versions

-   Chromium 111.0.5563.19
-   Mozilla Firefox 109.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 110
-   Microsoft Edge 110

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

[Compare
Source](https://github.com/Microsoft/playwright/compare/v1.30.0...v1.31.0)

#### New APIs

- New property
[`TestProject.dependencies`](https://playwright.dev/docs/api/class-testproject#test-project-dependencies)
to configure dependencies between projects.

Using dependencies allows global setup to produce traces and other
artifacts,
    see the setup steps in the test report and more.

    ```js
    // playwright.config.ts
    import { defineConfig } from '@&#8203;playwright/test';

    export default defineConfig({
      projects: [
        {
          name: 'setup',
          testMatch: /global.setup\.ts/,
        },
        {
          name: 'chromium',
          use: devices['Desktop Chrome'],
          dependencies: ['setup'],
        },
        {
          name: 'firefox',
          use: devices['Desktop Firefox'],
          dependencies: ['setup'],
        },
        {
          name: 'webkit',
          use: devices['Desktop Safari'],
          dependencies: ['setup'],
        },
      ],
    });
    ```

- New assertion
[`expect(locator).toBeInViewport()`](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-in-viewport)
ensures that locator points to an element that intersects viewport,
according to the [intersection observer
API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API).

    ```js
    const button = page.getByRole('button');

    // Make sure at least some part of element intersects viewport.
    await expect(button).toBeInViewport();

    // Make sure element is fully outside of viewport.
    await expect(button).not.toBeInViewport();

    // Make sure that at least half of the element intersects viewport.
    await expect(button).toBeInViewport({ ratio: 0.5 });
    ```

#### Miscellaneous

- DOM snapshots in trace viewer can be now opened in a separate window.
-   New method `defineConfig` to be used in `playwright.config`.
- New option `maxRedirects` for method
[`Route.fetch`](https://playwright.dev/docs/api/class-route#route-fetch).
-   Playwright now supports Debian 11 arm64.
- Official [docker images](https://playwright.dev/docs/docker) now
include Node 18 instead of Node 16.

#### ⚠️ Breaking change in component tests

Note: **component tests only**, does not affect end-to-end tests.

`playwright-ct.config` configuration file for [component
testing](https://playwright.dev/docs/test-components) now requires
calling `defineConfig`.

```js
// Before

import { type PlaywrightTestConfig, devices } from '@&#8203;playwright/experimental-ct-react';
const config: PlaywrightTestConfig = {
  // ... config goes here ...
};
export default config;
```

Replace `config` variable definition with `defineConfig` call:

```js
// After

import { defineConfig, devices } from '@&#8203;playwright/experimental-ct-react';
export default defineConfig({
  // ... config goes here ...
});
```

#### Browser Versions

-   Chromium 111.0.5563.19
-   Mozilla Firefox 109.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 110
-   Microsoft Edge 110

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

[Compare
Source](https://github.com/Microsoft/playwright/compare/v1.29.2...v1.30.0)

##### 🎉 Happy New Year 🎉

Maintenance release with bugfixes and new browsers only. We are baking
some nice features for v1.31.

##### Browser Versions

-   Chromium 110.0.5481.38
-   Mozilla Firefox 108.0.2
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 109
-   Microsoft Edge 109

</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://app.renovatebot.com/dashboard#github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNy4xIiwidXBkYXRlZEluVmVyIjoiMzUuMTcuMSJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: CI bot <fwouts@users.noreply.github.com>
Co-authored-by: François Wouts <f@zenc.io>
  • Loading branch information
3 people authored Mar 23, 2023
1 parent 5173bbf commit bdf7661
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 35 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/properties": "^2.1.0",
"@previewjs/vfs": "^2.0.2",
"express": "^4.18.2",
"playwright": "~1.29.2"
"playwright": "^1.32.0"
},
"devDependencies": {
"@types/express": "^4.17.17",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"typescript": "^4.9.5"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/api": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "^4.9.5"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/api": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"vite-plugin-solid": "^2.6.1"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frameworks/solid/tests/apps/solid-ts/src/App_screenshot_linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frameworks/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "^4.9.5"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frameworks/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"vue-template-compiler": "^2.7.14"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"vue": "^3.2.47"
},
"devDependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/testing": "workspace:*",
Expand Down
54 changes: 28 additions & 26 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "rimraf dist && tsc && unbuild"
},
"dependencies": {
"@playwright/test": "~1.29.2",
"@playwright/test": "^1.32.0",
"@previewjs/api": "^9.0.3",
"@previewjs/chromeless": "^4.0.4",
"@previewjs/core": "^19.0.2",
Expand All @@ -31,7 +31,7 @@
"assert-never": "^1.2.1",
"fs-extra": "^11.1.1",
"get-port": "^6.1.2",
"playwright": "~1.29.2"
"playwright": "^1.32.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
Expand Down

0 comments on commit bdf7661

Please sign in to comment.