update
This commit is contained in:
parent
4635e98017
commit
9d15a62dd8
|
|
@ -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:
|
||||
|
||||

|
||||

|
||||
|
||||
And for fonts, it now shows a nice preview:
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
### `--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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue