docs: release notes for 1.46 update (#32010)
This commit is contained in:
parent
a47d2f998c
commit
32ee09dbe6
|
|
@ -4,6 +4,50 @@ title: "Release notes"
|
||||||
toc_max_heading_level: 2
|
toc_max_heading_level: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Version 1.46
|
||||||
|
|
||||||
|
### TLS Client Certificates
|
||||||
|
|
||||||
|
Playwright now allows to supply client-side certificates, so that server can verify them, as specified by TLS Client Authentication.
|
||||||
|
|
||||||
|
You can provide client certificates as a parameter of [`method: Browser.newContext`] and [`method: APIRequest.newContext`]. The following snippet sets up a client certificate for `https://example.com`:
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
var context = await Browser.NewContextAsync(new() {
|
||||||
|
ClientCertificates = [
|
||||||
|
new() {
|
||||||
|
Origin = "https://example.com",
|
||||||
|
CertPath = "client-certificates/cert.pem",
|
||||||
|
KeyPath = "client-certificates/key.pem",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Trace Viewer Updates
|
||||||
|
|
||||||
|
- Content of text attachments is now rendered inline in the attachments pane.
|
||||||
|
- New setting to show/hide routing actions like [`method: Route.continue`].
|
||||||
|
- Request method and status are shown in the network details tab.
|
||||||
|
- New button to copy source file location to clipboard.
|
||||||
|
- Metadata pane now displays the `BaseURL`.
|
||||||
|
|
||||||
|
### Miscellaneous
|
||||||
|
|
||||||
|
- New `maxRetries` option in [`method: APIRequestContext.fetch`] which retries on the `ECONNRESET` network error.
|
||||||
|
|
||||||
|
### Browser Versions
|
||||||
|
|
||||||
|
- Chromium 128.0.6613.18
|
||||||
|
- Mozilla Firefox 128.0
|
||||||
|
- WebKit 18.0
|
||||||
|
|
||||||
|
This version was also tested against the following stable channels:
|
||||||
|
|
||||||
|
- Google Chrome 127
|
||||||
|
- Microsoft Edge 127
|
||||||
|
|
||||||
|
|
||||||
## Version 1.45
|
## Version 1.45
|
||||||
|
|
||||||
### Clock
|
### Clock
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,45 @@ title: "Release notes"
|
||||||
toc_max_heading_level: 2
|
toc_max_heading_level: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Version 1.46
|
||||||
|
|
||||||
|
### TLS Client Certificates
|
||||||
|
|
||||||
|
Playwright now allows to supply client-side certificates, so that server can verify them, as specified by TLS Client Authentication.
|
||||||
|
|
||||||
|
You can provide client certificates as a parameter of [`method: Browser.newContext`] and [`method: APIRequest.newContext`]. The following snippet sets up a client certificate for `https://example.com`:
|
||||||
|
|
||||||
|
```java
|
||||||
|
BrowserContext context = browser.newContext(new Browser.NewContextOptions()
|
||||||
|
.setClientCertificates(asList(new ClientCertificate("https://example.com")
|
||||||
|
.setCertPath(Paths.get("client-certificates/cert.pem"))
|
||||||
|
.setKeyPath(Paths.get("client-certificates/key.pem")))));
|
||||||
|
```
|
||||||
|
|
||||||
|
### Trace Viewer Updates
|
||||||
|
|
||||||
|
- Content of text attachments is now rendered inline in the attachments pane.
|
||||||
|
- New setting to show/hide routing actions like [`method: Route.continue`].
|
||||||
|
- Request method and status are shown in the network details tab.
|
||||||
|
- New button to copy source file location to clipboard.
|
||||||
|
- Metadata pane now displays the `baseURL`.
|
||||||
|
|
||||||
|
### Miscellaneous
|
||||||
|
|
||||||
|
- New `maxRetries` option in [`method: APIRequestContext.fetch`] which retries on the `ECONNRESET` network error.
|
||||||
|
|
||||||
|
### Browser Versions
|
||||||
|
|
||||||
|
- Chromium 128.0.6613.18
|
||||||
|
- Mozilla Firefox 128.0
|
||||||
|
- WebKit 18.0
|
||||||
|
|
||||||
|
This version was also tested against the following stable channels:
|
||||||
|
|
||||||
|
- Google Chrome 127
|
||||||
|
- Microsoft Edge 127
|
||||||
|
|
||||||
|
|
||||||
## Version 1.45
|
## Version 1.45
|
||||||
|
|
||||||
### Clock
|
### Clock
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,18 @@ export default defineConfig({
|
||||||
|
|
||||||
You can also provide client certificates to a particular [test project](./api/class-testproject#test-project-use) or as a parameter of [`method: Browser.newContext`] and [`method: APIRequest.newContext`].
|
You can also provide client certificates to a particular [test project](./api/class-testproject#test-project-use) or as a parameter of [`method: Browser.newContext`] and [`method: APIRequest.newContext`].
|
||||||
|
|
||||||
|
### `--only-changed` cli option
|
||||||
|
|
||||||
|
New CLI option `--only-changed` allows to only run test files that have been changed since the last git commit or from a specific git "ref".
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Only run test files with uncommitted changes
|
||||||
|
npx playwright test --only-changed
|
||||||
|
|
||||||
|
# Only run test files changed relative to the "main" branch
|
||||||
|
npx playwrigh test --only-changed=main
|
||||||
|
```
|
||||||
|
|
||||||
### Component Testing: New `router` fixture
|
### Component Testing: New `router` fixture
|
||||||
|
|
||||||
This release introduces an experimental `router` fixture to intercept and handle network requests in component testing.
|
This release introduces an experimental `router` fixture to intercept and handle network requests in component testing.
|
||||||
|
|
@ -59,29 +71,24 @@ test('example test', async ({ mount }) => {
|
||||||
|
|
||||||
This fixture is only available in [component tests](./test-components#handling-network-requests).
|
This fixture is only available in [component tests](./test-components#handling-network-requests).
|
||||||
|
|
||||||
### Test runner
|
|
||||||
|
|
||||||
- New CLI option `--only-changed` to only run test files that have been changed since the last commit or from a specific git "ref".
|
|
||||||
- New option to [box a fixture](./test-fixtures#box-fixtures) to minimize the fixture exposure in test reports and error messages.
|
|
||||||
- New option to provide a [custom fixture title](./test-fixtures#custom-fixture-title) to be used in test reports and error messages.
|
|
||||||
|
|
||||||
### UI Mode / Trace Viewer Updates
|
### UI Mode / Trace Viewer Updates
|
||||||
|
|
||||||
- New testing options pane in the UI mode to control test execution, for example "single worker" or "headed browser".
|
- Test annotations are now shown in UI mode.
|
||||||
- New setting to show/hide routing actions like `route.continue`.
|
- Content of text attachments is now rendered inline in the attachments pane.
|
||||||
|
- New setting to show/hide routing actions like [`method: Route.continue`].
|
||||||
- Request method and status are shown in the network details tab.
|
- Request method and status are shown in the network details tab.
|
||||||
- New button to copy source file location to clipboard.
|
- New button to copy source file location to clipboard.
|
||||||
- Content of text attachments is now rendered inline in the attachments pane.
|
|
||||||
- Metadata pane now displays the `baseURL`.
|
- Metadata pane now displays the `baseURL`.
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
|
||||||
- New `maxRetries` option in [`method: APIRequestContext.fetch`] which retries on the `ECONNRESET` network error.
|
- New `maxRetries` option in [`method: APIRequestContext.fetch`] which retries on the `ECONNRESET` network error.
|
||||||
- Improved link rendering inside annotations and attachments in the html report.
|
- New option to [box a fixture](./test-fixtures#box-fixtures) to minimize the fixture exposure in test reports and error messages.
|
||||||
|
- New option to provide a [custom fixture title](./test-fixtures#custom-fixture-title) to be used in test reports and error messages.
|
||||||
|
|
||||||
### Browser Versions
|
### Browser Versions
|
||||||
|
|
||||||
- Chromium 128.0.6613.7
|
- Chromium 128.0.6613.18
|
||||||
- Mozilla Firefox 128.0
|
- Mozilla Firefox 128.0
|
||||||
- WebKit 18.0
|
- WebKit 18.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,50 @@ title: "Release notes"
|
||||||
toc_max_heading_level: 2
|
toc_max_heading_level: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Version 1.46
|
||||||
|
|
||||||
|
### TLS Client Certificates
|
||||||
|
|
||||||
|
Playwright now allows to supply client-side certificates, so that server can verify them, as specified by TLS Client Authentication.
|
||||||
|
|
||||||
|
You can provide client certificates as a parameter of [`method: Browser.newContext`] and [`method: APIRequest.newContext`]. The following snippet sets up a client certificate for `https://example.com`:
|
||||||
|
|
||||||
|
```python
|
||||||
|
context = browser.new_context(
|
||||||
|
client_certificates=[
|
||||||
|
{
|
||||||
|
"origin": "https://example.com",
|
||||||
|
"certPath": "client-certificates/cert.pem",
|
||||||
|
"keyPath": "client-certificates/key.pem",
|
||||||
|
}
|
||||||
|
],
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Trace Viewer Updates
|
||||||
|
|
||||||
|
- Content of text attachments is now rendered inline in the attachments pane.
|
||||||
|
- New setting to show/hide routing actions like [`method: Route.continue`].
|
||||||
|
- Request method and status are shown in the network details tab.
|
||||||
|
- New button to copy source file location to clipboard.
|
||||||
|
- Metadata pane now displays the `base_url`.
|
||||||
|
|
||||||
|
### Miscellaneous
|
||||||
|
|
||||||
|
- New `maxRetries` option in [`method: APIRequestContext.fetch`] which retries on the `ECONNRESET` network error.
|
||||||
|
|
||||||
|
### Browser Versions
|
||||||
|
|
||||||
|
- Chromium 128.0.6613.18
|
||||||
|
- Mozilla Firefox 128.0
|
||||||
|
- WebKit 18.0
|
||||||
|
|
||||||
|
This version was also tested against the following stable channels:
|
||||||
|
|
||||||
|
- Google Chrome 127
|
||||||
|
- Microsoft Edge 127
|
||||||
|
|
||||||
|
|
||||||
## Version 1.45
|
## Version 1.45
|
||||||
|
|
||||||
### Clock
|
### Clock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue