Skip to content

Commit a0fdb3f

Browse files
committed
cherry-pick(#35633): chore: add v1.52 release notes
1 parent 25fd261 commit a0fdb3f

File tree

4 files changed

+193
-0
lines changed

4 files changed

+193
-0
lines changed

docs/src/release-notes-csharp.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.52
8+
9+
### Highlights
10+
11+
- New method [`method: LocatorAssertions.toContainClass`] to ergonomically assert individual class names on the element.
12+
13+
```csharp
14+
await Expect(Page.GetByRole(AriaRole.Listitem, new() { Name = "Ship v1.52" })).ToContainClassAsync("done");
15+
```
16+
17+
- [Aria Snapshots](./aria-snapshots.md) got two new properties: [`/children`](./aria-snapshots.md#strict-matching) for strict matching and `/url` for links.
18+
19+
```csharp
20+
await Expect(locator).ToMatchAriaSnapshotAsync(@"
21+
- list
22+
- /children: equal
23+
- listitem: Feature A
24+
- listitem:
25+
- link ""Feature B"":
26+
- /url: ""https://playwright.dev""
27+
");
28+
```
29+
30+
### Miscellaneous
31+
32+
- New option [`option: APIRequest.newContext.maxRedirects`] in [`method: APIRequest.newContext`] to control the maximum number of redirects.
33+
- New option [`option: Locator.ariaSnapshot.ref`] in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
34+
- HTML reporter now supports *NOT filtering* via `!@my-tag` or `!my-file.spec.ts` or `!p:my-project`.
35+
36+
### Breaking Changes
37+
38+
- Base URL matching is not supported in [`method: Page.frame`] anymore. We recommend migrating to [`method: Page.frameLocator`] instead for having a more convenient API.
39+
- Glob URL patterns in methods like [`method: Page.route`] do not support `?` and `[]` anymore. We recommend using regular expressions instead.
40+
- Method [`method: Route.continue`] does not allow to override the `Cookie` header anymore. If a `Cookie` header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use [`method: BrowserContext.addCookies`].
41+
- macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.
42+
43+
### Browser Versions
44+
45+
- Chromium 136.0.7103.25
46+
- Mozilla Firefox 137.0
47+
- WebKit 18.4
48+
49+
This version was also tested against the following stable channels:
50+
51+
- Google Chrome 135
52+
- Microsoft Edge 135
53+
754
## Version 1.51
855

956
### Highlights

docs/src/release-notes-java.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.52
8+
9+
### Highlights
10+
11+
- New method [`method: LocatorAssertions.toContainClass`] to ergonomically assert individual class names on the element.
12+
13+
```java
14+
assertThat(page.getByRole(AriaRole.LISTITEM, new Page.GetByRoleOptions().setName("Ship v1.52"))).containsClass("done");
15+
```
16+
17+
- [Aria Snapshots](./aria-snapshots.md) got two new properties: [`/children`](./aria-snapshots.md#strict-matching) for strict matching and `/url` for links.
18+
19+
```java
20+
assertThat(locator).toMatchAriaSnapshot("""
21+
- list
22+
- /children: equal
23+
- listitem: Feature A
24+
- listitem:
25+
- link "Feature B":
26+
- /url: "https://playwright.dev"
27+
""");
28+
```
29+
30+
### Miscellaneous
31+
32+
- New option [`option: APIRequest.newContext.maxRedirects`] in [`method: APIRequest.newContext`] to control the maximum number of redirects.
33+
- New option [`option: Locator.ariaSnapshot.ref`] in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
34+
- HTML reporter now supports *NOT filtering* via `!@my-tag` or `!my-file.spec.ts` or `!p:my-project`.
35+
36+
### Breaking Changes
37+
38+
- Base URL matching is not supported in [`method: Page.frame`] anymore. We recommend migrating to [`method: Page.frameLocator`] instead for having a more convenient API.
39+
- Glob URL patterns in methods like [`method: Page.route`] do not support `?` and `[]` anymore. We recommend using regular expressions instead.
40+
- Method [`method: Route.continue`] does not allow to override the `Cookie` header anymore. If a `Cookie` header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use [`method: BrowserContext.addCookies`].
41+
- macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.
42+
43+
### Browser Versions
44+
45+
- Chromium 136.0.7103.25
46+
- Mozilla Firefox 137.0
47+
- WebKit 18.4
48+
49+
This version was also tested against the following stable channels:
50+
51+
- Google Chrome 135
52+
- Microsoft Edge 135
53+
754
## Version 1.51
855
956
### Highlights

docs/src/release-notes-js.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,58 @@ toc_max_heading_level: 2
66

77
import LiteYouTube from '@site/src/components/LiteYouTube';
88

9+
## Version 1.52
10+
11+
### Highlights
12+
13+
- New method [`method: LocatorAssertions.toContainClass`] to ergonomically assert individual class names on the element.
14+
15+
```ts
16+
await expect(page.getByRole('listitem', { name: 'Ship v1.52' })).toContainClass('done');
17+
```
18+
19+
- [Aria Snapshots](./aria-snapshots.md) got two new properties: [`/children`](./aria-snapshots.md#strict-matching) for strict matching and `/url` for links.
20+
21+
```ts
22+
await expect(locator).toMatchAriaSnapshot(`
23+
- list
24+
- /children: equal
25+
- listitem: Feature A
26+
- listitem:
27+
- link "Feature B":
28+
- /url: "https://playwright.dev"
29+
`);
30+
```
31+
32+
### Test Runner
33+
34+
- New property [`property: TestProject.workers`] allows to specify the number of concurrent worker processes to use for a test project. The global limit of property [`property: TestConfig.workers`] still applies.
35+
- New [`property: TestConfig.failOnFlakyTests`] option to fail the test run if any flaky tests are detected, similarly to `--fail-on-flaky-tests`. This is useful for CI/CD environments where you want to ensure that all tests are stable before deploying.
36+
- New property [`property: TestResult.annotations`] contains annotations for each test retry.
37+
38+
### Miscellaneous
39+
40+
- New option [`option: APIRequest.newContext.maxRedirects`] in [`method: APIRequest.newContext`] to control the maximum number of redirects.
41+
- New option [`option: Locator.ariaSnapshot.ref`] in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
42+
- HTML reporter now supports *NOT filtering* via `!@my-tag` or `!my-file.spec.ts` or `!p:my-project`.
43+
44+
### Breaking Changes
45+
46+
- Glob URL patterns in methods like [`method: Page.route`] do not support `?` and `[]` anymore. We recommend using regular expressions instead.
47+
- Method [`method: Route.continue`] does not allow to override the `Cookie` header anymore. If a `Cookie` header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use [`method: BrowserContext.addCookies`].
48+
- macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.
49+
50+
### Browser Versions
51+
52+
- Chromium 136.0.7103.25
53+
- Mozilla Firefox 137.0
54+
- WebKit 18.4
55+
56+
This version was also tested against the following stable channels:
57+
58+
- Google Chrome 135
59+
- Microsoft Edge 135
60+
961
## Version 1.51
1062

1163
### StorageState for indexedDB

docs/src/release-notes-python.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.52
8+
9+
### Highlights
10+
11+
- New method [`method: LocatorAssertions.toContainClass`] to ergonomically assert individual class names on the element.
12+
13+
```python
14+
expect(page.get_by_role('listitem', name='Ship v1.52')).to_contain_class('done')
15+
```
16+
17+
- [Aria Snapshots](./aria-snapshots.md) got two new properties: [`/children`](./aria-snapshots.md#strict-matching) for strict matching and `/url` for links.
18+
19+
```python
20+
expect(locator).to_match_aria_snapshot("""
21+
- list
22+
- /children: equal
23+
- listitem: Feature A
24+
- listitem:
25+
- link "Feature B":
26+
- /url: "https://playwright.dev"
27+
""")
28+
```
29+
30+
### Miscellaneous
31+
32+
- New option [`option: APIRequest.newContext.maxRedirects`] in [`method: APIRequest.newContext`] to control the maximum number of redirects.
33+
- New option [`option: Locator.ariaSnapshot.ref`] in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
34+
- HTML reporter now supports *NOT filtering* via `!@my-tag` or `!my-file.spec.ts` or `!p:my-project`.
35+
36+
### Breaking Changes
37+
38+
- Base URL matching is not supported in [`method: Page.frame`] anymore. We recommend migrating to [`method: Page.frameLocator`] instead for having a more convenient API.
39+
- Glob URL patterns in methods like [`method: Page.route`] do not support `?` and `[]` anymore. We recommend using regular expressions instead.
40+
- Method [`method: Route.continue`] does not allow to override the `Cookie` header anymore. If a `Cookie` header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use [`method: BrowserContext.addCookies`].
41+
- macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.
42+
43+
### Browser Versions
44+
45+
- Chromium 136.0.7103.25
46+
- Mozilla Firefox 137.0
47+
- WebKit 18.4
48+
49+
This version was also tested against the following stable channels:
50+
51+
- Google Chrome 135
52+
- Microsoft Edge 135
53+
754
## Version 1.51
855

956
### Highlights

0 commit comments

Comments
 (0)