Skip to content

Commit

Permalink
Update Playwright to v1.30.0 (#1944)
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.28.0` -> `1.30.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.28.0/1.30.0) | [![age](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.30.0/compatibility-slim/1.28.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.30.0/confidence-slim/1.28.0)](https://docs.renovatebot.com/merge-confidence/) |
| [playwright](https://playwright.dev) ([source](https://togithub.com/Microsoft/playwright)) | [`1.28.0` -> `1.30.0`](https://renovatebot.com/diffs/npm/playwright/1.28.0/1.30.0) | [![age](https://badges.renovateapi.com/packages/npm/playwright/1.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/playwright/1.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/playwright/1.30.0/compatibility-slim/1.28.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/playwright/1.30.0/confidence-slim/1.28.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

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

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

##### 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

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

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

##### Highlights

[microsoft/playwright#19661 - \[BUG] 1.29.1 browserserver + page.goto = net::ERR_SOCKS_CONNECTION_FAILED

##### Browser Versions

-   Chromium 109.0.5414.46
-   Mozilla Firefox 107.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 108
-   Microsoft Edge 108

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

[Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.29.0...v1.29.1)

##### Highlights

[microsoft/playwright#18928 - \[BUG] Electron firstWindow times out after upgrading to 1.28.0[microsoft/playwright#19246 - \[BUG] Electron firstWindow times out after upgrading to 1.28.[microsoft/playwright#19412 - \[REGRESSION]: 1.28 does not work with electron-serve anymor[microsoft/playwright#19540 - \[BUG] electron.app.getAppPath() returns the path one level higher if you run electron pointing to the direct[microsoft/playwright#19548 - \[REGRESSION]: Ubuntu 18 LTS not supported anymore

##### Browser Versions

-   Chromium 109.0.5414.46
-   Mozilla Firefox 107.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 108
-   Microsoft Edge 108

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

[Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.28.1...v1.29.0)

#### New APIs

-   New method [`route.fetch()`](https://playwright.dev/docs/api/class-route#route-fetch) and new option `json` for [`route.fulfill()`](https://playwright.dev/docs/api/class-route#route-fulfill):

    ```js
    await page.route('**/api/settings', async route => {
      // Fetch original settings.
      const response = await route.fetch();

      // Force settings theme to a predefined value.
      const json = await response.json();
      json.theme = 'Solorized';

      // Fulfill with modified data.
      await route.fulfill({ json });
    });
    ```

-   New method [`locator.all()`](https://playwright.dev/docs/api/class-locator#locator-all) to iterate over all matching elements:

    ```js
    // Check all checkboxes!
    const checkboxes = page.getByRole('checkbox');
    for (const checkbox of await checkboxes.all())
      await checkbox.check();
    ```

-   [`Locator.selectOption`](https://playwright.dev/docs/api/class-locator#locator-select-option) matches now by value or label:

    ```html
    <select multiple>
      <option value="red">Red</div>
      <option value="green">Green</div>
      <option value="blue">Blue</div>
    </select>
    ```

    ```js
    await element.selectOption('Red');
    ```

-   Retry blocks of code until all assertions pass:

    ```js
    await expect(async () => {
      const response = await page.request.get('https://api.example.com');
      await expect(response).toBeOK();
    }).toPass();
    ```

    Read more in [our documentation](https://playwright.dev/docs/test-assertions#retrying).

-   Automatically capture **full page screenshot** on test failure:
    ```js
    // playwright.config.ts
    import type { PlaywrightTestConfig } from '@&#8203;playwright/test';

    const config: PlaywrightTestConfig = {
      use: {
        screenshot: {
          mode: 'only-on-failure',
          fullPage: true,
        }
      }
    };

    export default config;
    ```

#### Miscellaneous

-   Playwright Test now respects [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig).
-   New options `args` and `proxy` for [`androidDevice.launchBrowser()`](https://playwright.dev/docs/api/class-androiddevice#android-device-launch-browser).
-   Option `postData` in method [`route.continue()`](https://playwright.dev/docs/api/class-route#route-continue) now supports [serializable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) values.

#### Browser Versions

-   Chromium 109.0.5414.46
-   Mozilla Firefox 107.0
-   WebKit 16.4

This version was also tested against the following stable channels:

-   Google Chrome 108
-   Microsoft Edge 108

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

[Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.28.0...v1.28.1)

#### Highlights

This patch release includes the following bug fixes:

[microsoft/playwright#18928 - \[BUG] Electron firstWindow times out after upgrading to 1.28.0[microsoft/playwright#18920 - \[BUG] \[expanded=false] in role selector returns elements without aria-expanded attribu[microsoft/playwright#18865 - \[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

</details>

---

### 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.

🔕 **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/hashintel/hash).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTEuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExMS4xIn0=-->
  • Loading branch information
renovate[bot] committed Jan 25, 2023
1 parent 7c8b4b7 commit 641a6ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions tests/hash-playwright/package.json
Expand Up @@ -13,11 +13,11 @@
"@local/hash-backend-utils": "0.0.0-private",
"@local/hash-isomorphic-utils": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@playwright/test": "1.28.0",
"@playwright/test": "1.30.0",
"eslint": "8.32.0",
"execa": "5.1.1",
"js-yaml": "4.1.0",
"playwright": "1.28.0",
"playwright": "1.30.0",
"typescript": "4.9.4"
}
}
28 changes: 14 additions & 14 deletions yarn.lock
Expand Up @@ -5134,13 +5134,13 @@
tiny-glob "^0.2.9"
tslib "^2.4.0"

"@playwright/test@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.28.0.tgz#8de83f9d2291bba3f37883e33431b325661720d9"
integrity sha512-vrHs5DFTPwYox5SGKq/7TDn/S4q6RA1zArd7uhO6EyP9hj3XgZBBM12ktMbnDQNxh/fL1IUKsTNLxihmsU38lQ==
"@playwright/test@1.30.0":
version "1.30.0"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.30.0.tgz#8c0c4930ff2c7be7b3ec3fd434b2a3b4465ed7cb"
integrity sha512-SVxkQw1xvn/Wk/EvBnqWIq6NLo1AppwbYOjNLmyU0R1RoQ3rLEBtmjTnElcnz8VEtn11fptj1ECxK0tgURhajw==
dependencies:
"@types/node" "*"
playwright-core "1.28.0"
playwright-core "1.30.0"

"@pmmmwh/react-refresh-webpack-plugin@^0.5.5":
version "0.5.10"
Expand Down Expand Up @@ -17310,17 +17310,17 @@ pkg-dir@^5.0.0:
dependencies:
find-up "^5.0.0"

playwright-core@1.28.0:
version "1.28.0"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.28.0.tgz#61df5c714f45139cca07095eccb4891e520e06f2"
integrity sha512-nJLknd28kPBiCNTbqpu6Wmkrh63OEqJSFw9xOfL9qxfNwody7h6/L3O2dZoWQ6Oxcm0VOHjWmGiCUGkc0X3VZA==
playwright-core@1.30.0:
version "1.30.0"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.30.0.tgz#de987cea2e86669e3b85732d230c277771873285"
integrity sha512-7AnRmTCf+GVYhHbLJsGUtskWTE33SwMZkybJ0v6rqR1boxq2x36U7p1vDRV7HO2IwTZgmycracLxPEJI49wu4g==

playwright@1.28.0:
version "1.28.0"
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.28.0.tgz#eaec2e607858bd4c0bd7434ac01042720e6a39e3"
integrity sha512-kyOXGc5y1mgi+hgEcCIyE1P1+JumLrxS09nFHo5sdJNzrucxPRAGwM4A2X3u3SDOfdgJqx61yIoR6Av+5plJPg==
playwright@1.30.0:
version "1.30.0"
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.30.0.tgz#b1d7be2d45d97fbb59f829f36f521f12010fe072"
integrity sha512-ENbW5o75HYB3YhnMTKJLTErIBExrSlX2ZZ1C/FzmHjUYIfxj/UnI+DWpQr992m+OQVSg0rCExAOlRwB+x+yyIg==
dependencies:
playwright-core "1.28.0"
playwright-core "1.30.0"

pluralize@8.0.0, pluralize@^8.0.0:
version "8.0.0"
Expand Down

0 comments on commit 641a6ac

Please sign in to comment.