From ff11273c7baf47b36945800e26fad96e5425c321 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 5 Aug 2024 05:35:46 -0700 Subject: [PATCH] cherry-pick(#32010): docs: release notes for 1.46 update --- docs/src/release-notes-csharp.md | 44 ++++++++++++++++++++++++++++++++ docs/src/release-notes-java.md | 39 ++++++++++++++++++++++++++++ docs/src/release-notes-js.md | 29 +++++++++++++-------- docs/src/release-notes-python.md | 44 ++++++++++++++++++++++++++++++++ 4 files changed, 145 insertions(+), 11 deletions(-) diff --git a/docs/src/release-notes-csharp.md b/docs/src/release-notes-csharp.md index df1d45cd2cd96..647ba6431ff73 100644 --- a/docs/src/release-notes-csharp.md +++ b/docs/src/release-notes-csharp.md @@ -4,6 +4,50 @@ title: "Release notes" 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 ### Clock diff --git a/docs/src/release-notes-java.md b/docs/src/release-notes-java.md index 3980a1b0cf687..cb948b15da1ce 100644 --- a/docs/src/release-notes-java.md +++ b/docs/src/release-notes-java.md @@ -4,6 +4,45 @@ title: "Release notes" 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 ### Clock diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 2b9f485eb06f3..7898136acfe46 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -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`]. +### `--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 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). -### 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 -- New testing options pane in the UI mode to control test execution, for example "single worker" or "headed browser". -- New setting to show/hide routing actions like `route.continue`. +- Test annotations are now shown in UI mode. +- 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. -- Content of text attachments is now rendered inline in the attachments pane. - Metadata pane now displays the `baseURL`. ### Miscellaneous - 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 -- Chromium 128.0.6613.7 +- Chromium 128.0.6613.18 - Mozilla Firefox 128.0 - WebKit 18.0 diff --git a/docs/src/release-notes-python.md b/docs/src/release-notes-python.md index 15176ca472c51..d19589023fd55 100644 --- a/docs/src/release-notes-python.md +++ b/docs/src/release-notes-python.md @@ -4,6 +4,50 @@ title: "Release notes" 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 ### Clock