From a8139b5d77821bd7dfea2756bd5931bafcee9ba4 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 5 Sep 2024 11:57:14 +0200 Subject: [PATCH] docs: add release notes for 1.47 (#32463) --- docs/src/release-notes-csharp.md | 31 ++++++++++++++++ docs/src/release-notes-java.md | 31 ++++++++++++++++ docs/src/release-notes-js.md | 61 ++++++++++++++++++++++++++++++++ docs/src/release-notes-python.md | 31 ++++++++++++++++ 4 files changed, 154 insertions(+) diff --git a/docs/src/release-notes-csharp.md b/docs/src/release-notes-csharp.md index 697ce6641f2ab..1693149933b68 100644 --- a/docs/src/release-notes-csharp.md +++ b/docs/src/release-notes-csharp.md @@ -4,6 +4,37 @@ title: "Release notes" toc_max_heading_level: 2 --- +## Version 1.47 + +### Network Tab improvements + +The Network tab in the trace viewer now allows searching and filtering by asset type: + +![Network tab now has filters](https://github.com/user-attachments/assets/4bd1b67d-90bd-438b-a227-00b9e86872e2) + +And for fonts, it now shows a nice preview: + +![Font requests have a preview now](https://github.com/user-attachments/assets/769d64cc-cdcb-421d-9849-227d2f874d1f) + +### Miscellaneous + +- The `mcr.microsoft.com/playwright-dotnet:v1.47.0` now serves a Playwright image based on Ubuntu 24.04 Noble. + To use the 22.04 jammy-based image, please use `mcr.microsoft.com/playwright-dotnet:v1.47.0-jammy` instead. +- TLS client certificates can now be passed from memory by passing [`option: cert`] and [`option: key`] as byte arrays instead of file paths. +- [`option: noWaitAfter`] in [`method: Locator.selectOption`] was deprecated. +- We've seen reports of WebGL in Webkit misbehaving on GitHub Actions `macos-13`. We recommend upgrading GitHub Actions to `macos-14`. + +### Browser Versions + +- Chromium 129.0.6668.22 +- Mozilla Firefox 130.0 +- WebKit 18.0 + +This version was also tested against the following stable channels: + +- Google Chrome 128 +- Microsoft Edge 128 + ## Version 1.46 ### TLS Client Certificates diff --git a/docs/src/release-notes-java.md b/docs/src/release-notes-java.md index cb948b15da1ce..686a444634fe7 100644 --- a/docs/src/release-notes-java.md +++ b/docs/src/release-notes-java.md @@ -4,6 +4,37 @@ title: "Release notes" toc_max_heading_level: 2 --- +## Version 1.47 + +### Network Tab improvements + +The Network tab in the trace viewer now allows searching and filtering by asset type: + +![Network tab now has filters](https://github.com/user-attachments/assets/4bd1b67d-90bd-438b-a227-00b9e86872e2) + +And for fonts, it now shows a nice preview: + +![Font requests have a preview now](https://github.com/user-attachments/assets/769d64cc-cdcb-421d-9849-227d2f874d1f) + +### Miscellaneous + +- The `mcr.microsoft.com/playwright-java:v1.47.0` now serves a Playwright image based on Ubuntu 24.04 Noble. + To use the 22.02 jammy-based image, please use `mcr.microsoft.com/playwright-java:v1.47.0-jammy` instead. +- TLS client certificates can now be passed from memory by passing [`option: cert`] and [`option: key`] as byte arrays instead of file paths. +- [`option: noWaitAfter`] in [`method: Locator.selectOption`] was deprecated. +- We've seen reports of WebGL in Webkit misbehaving on GitHub Actions `macos-13`. We recommend upgrading GitHub Actions to `macos-14`. + +### Browser Versions + +- Chromium 129.0.6668.22 +- Mozilla Firefox 130.0 +- WebKit 18.0 + +This version was also tested against the following stable channels: + +- Google Chrome 128 +- Microsoft Edge 128 + ## Version 1.46 ### TLS Client Certificates diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index c4434d60f5977..aa62541ce5b05 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -6,6 +6,67 @@ toc_max_heading_level: 2 import LiteYouTube from '@site/src/components/LiteYouTube'; +## Version 1.47 + +### Network Tab improvements + +The Network tab in the UI mode and trace viewer now allows searching and filtering by asset type: + +![Network tab now has filters](https://github.com/user-attachments/assets/4bd1b67d-90bd-438b-a227-00b9e86872e2) + +And for fonts, it now shows a nice preview: + +![Font requests have a preview now](https://github.com/user-attachments/assets/769d64cc-cdcb-421d-9849-227d2f874d1f) + + +### `--tsconfig` CLI option + +By default, Playwright will look up the closest tsconfig for each imported file using a heuristic. You can now specify a single tsconfig file in the command line, and Playwright will use it for all imported files, not only test files: + +```sh +# Pass a specific tsconfig +npx playwright test --tsconfig tsconfig.test.json +``` + +### [APIRequestContext] now accepts [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) and `string` as query parameters + +You can now pass [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) and `string` as query parameters to [APIRequestContext]: + +```ts +test('query params', async ({ request }) => { + const searchParams = new URLSearchParams(); + searchParams.set('userId', 1); + const response = await request.get( + 'https://jsonplaceholder.typicode.com/posts', + { + params: searchParams // or as a string: 'userId=1' + } + ); + // ... +}); +``` + +### Miscellaneous + +- The `mcr.microsoft.com/playwright:v1.47.0` now serves a Playwright image based on Ubuntu 24.04 Noble. + To use the 22.04 jammy-based image, please use `mcr.microsoft.com/playwright:v1.47.0-jammy` instead. +- New option [`option: behavior`] in [`method: Page.removeAllListeners`], [`method: Browser.removeAllListeners`] and [`method: BrowserContext.removeAllListeners`] to wait for ongoing listeners to complete. +- TLS client certificates can now be passed from memory by passing [`option: cert`] and [`option: key`] as buffers instead of file paths. +- Attachments with a `text/html` content type can now be opened in a new tab in the HTML report. This is useful for including third-party reports or other HTML content in the Playwright test report and distributing it to your team. +- [`option: noWaitAfter`] in [`method: Locator.selectOption`] was deprecated. +- We've seen reports of WebGL in Webkit misbehaving on GitHub Actions `macos-13`. We recommend upgrading GitHub Actions to `macos-14`. + +### Browser Versions + +- Chromium 129.0.6668.22 +- Mozilla Firefox 130.0 +- WebKit 18.0 + +This version was also tested against the following stable channels: + +- Google Chrome 128 +- Microsoft Edge 128 + ## Version 1.46