From 9d15a62dd894b818cd184f20c1e955d0614625d9 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 5 Sep 2024 10:33:28 +0200 Subject: [PATCH] update --- docs/src/release-notes-js.md | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index b1f79afa45..1816a23cd1 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -10,32 +10,27 @@ import LiteYouTube from '@site/src/components/LiteYouTube'; ### Network Tab improvements -The Network tab in the UI mode and trace viewer now allows searching searching and filtering by asset type: +The Network tab in the UI mode and trace viewer now allows searching and filtering by asset type: -![](https://github.com/user-attachments/assets/4bd1b67d-90bd-438b-a227-00b9e86872e2) +![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: -![](https://github.com/user-attachments/assets/769d64cc-cdcb-421d-9849-227d2f874d1f) +![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 a 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: +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 ``` -### HTML attachments in the HTML report can now be opened in a new tab +### [APIRequestContext] now accepts [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) and `string` as query parameters -Attachments with an HTML content-type can now be opened in a new tab by clicking on the attachment 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. - -### `APIRequestContext` now accepts `URLSearchParams` and `string` as query parameters - -You can now pass `URLSearchParams` and `string` as query parameters to `APIRequestContext`: +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 }) => { @@ -51,18 +46,17 @@ test('query params', async ({ request }) => { ); // ... }); -``` - -### CI Documentation improvements - -We reorganized the CI documentation to make it easier to find the information you need. Please let us know your feedback on the new structure! +``` ### Miscellaneous - The `mcr.microsoft.com/playwright:v1.47.0` now serves a Playwright image based on Ubuntu Noble. To use the jammy-based image, please use `mcr.microsoft.com/playwright:v1.47.0-jammy` instead. -- New option in `Browser.removeAllListeners` and `BrowserContext.removeAllListeners` to wait until all listeners are removed. -- TLS client certificates can now be passed from memory by passing `cert` and `key` as buffers instead of file paths. +- 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