Skip to content

Commit 833c729

Browse files
authored
docs: roll follow-ups for .NET and Python (#34550)
1 parent eff5cd6 commit 833c729

9 files changed

+31
-13
lines changed

docs/src/api/class-locator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Additional locator to match.
155155
- returns: <[string]>
156156

157157
Captures the aria snapshot of the given element.
158-
Read more about [aria snapshots](../aria-snapshots.md) and [`method: LocatorAssertions.toMatchAriaSnapshot#1`] for the corresponding assertion.
158+
Read more about [aria snapshots](../aria-snapshots.md) and [`method: LocatorAssertions.toMatchAriaSnapshot`] for the corresponding assertion.
159159

160160
**Usage**
161161

docs/src/api/class-locatorassertions.md

+23-5
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,24 @@ Expected accessible description.
240240
### option: LocatorAssertions.NotToHaveAccessibleDescription.timeout = %%-csharp-java-python-assertions-timeout-%%
241241
* since: v1.44
242242

243+
## async method: LocatorAssertions.NotToHaveAccessibleErrorMessage
244+
* since: v1.50
245+
* langs: python
246+
247+
The opposite of [`method: LocatorAssertions.toHaveAccessibleErrorMessage`].
248+
249+
### param: LocatorAssertions.NotToHaveAccessibleErrorMessage.errorMessage
250+
* since: v1.50
251+
- `errorMessage` <[string]|[RegExp]>
252+
253+
Expected accessible error message.
254+
255+
### option: LocatorAssertions.NotToHaveAccessibleErrorMessage.ignoreCase = %%-assertions-ignore-case-%%
256+
* since: v1.50
257+
258+
### option: LocatorAssertions.NotToHaveAccessibleErrorMessage.timeout = %%-csharp-java-python-assertions-timeout-%%
259+
* since: v1.50
260+
243261

244262
## async method: LocatorAssertions.NotToHaveAccessibleName
245263
* since: v1.44
@@ -446,7 +464,7 @@ Expected options currently selected.
446464
* since: v1.49
447465
* langs: python
448466

449-
The opposite of [`method: LocatorAssertions.toMatchAriaSnapshot#1`].
467+
The opposite of [`method: LocatorAssertions.toMatchAriaSnapshot`].
450468

451469
### param: LocatorAssertions.NotToMatchAriaSnapshot.expected
452470
* since: v1.49
@@ -2180,7 +2198,7 @@ Expected options currently selected.
21802198
* since: v1.23
21812199

21822200

2183-
## async method: LocatorAssertions.toMatchAriaSnapshot#1
2201+
## async method: LocatorAssertions.toMatchAriaSnapshot
21842202
* since: v1.49
21852203
* langs:
21862204
- alias-java: matchesAriaSnapshot
@@ -2229,14 +2247,14 @@ assertThat(page.locator("body")).matchesAriaSnapshot("""
22292247
""");
22302248
```
22312249

2232-
### param: LocatorAssertions.toMatchAriaSnapshot#1.expected
2250+
### param: LocatorAssertions.toMatchAriaSnapshot.expected
22332251
* since: v1.49
22342252
- `expected` <string>
22352253

2236-
### option: LocatorAssertions.toMatchAriaSnapshot#1.timeout = %%-js-assertions-timeout-%%
2254+
### option: LocatorAssertions.toMatchAriaSnapshot.timeout = %%-js-assertions-timeout-%%
22372255
* since: v1.49
22382256

2239-
### option: LocatorAssertions.toMatchAriaSnapshot#1.timeout = %%-csharp-java-python-assertions-timeout-%%
2257+
### option: LocatorAssertions.toMatchAriaSnapshot.timeout = %%-csharp-java-python-assertions-timeout-%%
22402258
* since: v1.49
22412259

22422260
## async method: LocatorAssertions.toMatchAriaSnapshot#2

docs/src/aria-snapshots.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ structure of a page, use the [Chrome DevTools Accessibility Pane](https://develo
154154

155155
## Snapshot matching
156156

157-
The [`method: LocatorAssertions.toMatchAriaSnapshot#1`] assertion method in Playwright compares the accessible
157+
The [`method: LocatorAssertions.toMatchAriaSnapshot`] assertion method in Playwright compares the accessible
158158
structure of the locator scope with a predefined aria snapshot template, helping validate the page's state against
159159
testing requirements.
160160

docs/src/release-notes-csharp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc_max_heading_level: 2
99

1010
### Aria snapshots
1111

12-
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot#1`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
12+
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
1313

1414
```csharp
1515
await page.GotoAsync("https://playwright.dev");

docs/src/release-notes-java.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toc_max_heading_level: 2
88

99
### Aria snapshots
1010

11-
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot#1`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
11+
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
1212

1313
```java
1414
page.navigate("https://playwright.dev");

docs/src/release-notes-js.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This version was also tested against the following stable channels:
8484

8585
### Aria snapshots
8686

87-
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot#1`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
87+
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
8888

8989
```js
9090
await page.goto('https://playwright.dev');

docs/src/release-notes-python.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toc_max_heading_level: 2
88

99
### Aria snapshots
1010

11-
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot#1`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
11+
New assertion [`method: LocatorAssertions.toMatchAriaSnapshot`] verifies page structure by comparing to an expected accessibility tree, represented as YAML.
1212

1313
```python
1414
page.goto("https://playwright.dev")

docs/src/test-runners-python.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ See the [guides for CI providers](./ci.md) to deploy your tests to CI/CD.
263263
## Async Fixtures
264264

265265
If you want to use async fixtures, you can use the [`pytest-playwright-asyncio`](https://pypi.org/project/pytest-playwright-asyncio/) plugin.
266-
Make sure to use `pytest-asyncio>=0.24.0` and make your tests use of [`loop_scope=sesion`](https://pytest-asyncio.readthedocs.io/en/latest/how-to-guides/run_session_tests_in_same_loop.html).
266+
Make sure to use `pytest-asyncio>=0.24.0` and make your tests use of [`loop_scope=session`](https://pytest-asyncio.readthedocs.io/en/latest/how-to-guides/run_session_tests_in_same_loop.html).
267267

268268
```python
269269
import pytest

packages/playwright-core/types/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12417,7 +12417,7 @@ export interface Locator {
1241712417

1241812418
/**
1241912419
* Captures the aria snapshot of the given element. Read more about [aria snapshots](https://playwright.dev/docs/aria-snapshots) and
12420-
* [expect(locator).toMatchAriaSnapshot(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-match-aria-snapshot-1)
12420+
* [expect(locator).toMatchAriaSnapshot(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-match-aria-snapshot)
1242112421
* for the corresponding assertion.
1242212422
*
1242312423
* **Usage**

0 commit comments

Comments
 (0)