This commit is contained in:
Simon Knott 2024-09-05 10:33:28 +02:00
parent 4635e98017
commit 9d15a62dd8
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -10,32 +10,27 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
### Network Tab improvements ### 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: 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 ### `--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 ```sh
# Pass a specific tsconfig # Pass a specific tsconfig
npx playwright test --tsconfig tsconfig.test.json 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. You can now pass [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) and `string` as query parameters to [APIRequestContext]:
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`:
```ts ```ts
test('query params', async ({ request }) => { test('query params', async ({ request }) => {
@ -53,16 +48,15 @@ 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 ### Miscellaneous
- The `mcr.microsoft.com/playwright:v1.47.0` now serves a Playwright image based on Ubuntu Noble. - 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. 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. - 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 `cert` and `key` as buffers instead of file paths. - 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 ### Browser Versions