From a98707f3f044aff7336a034eb6a84389d555de76 Mon Sep 17 00:00:00 2001
From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com>
Date: Fri, 17 Jan 2025 02:15:52 -0800
Subject: [PATCH] feat(roll): roll to ToT Playwright (17-01-25) (#1648)
---
dotnet/docs/api/class-locatorassertions.mdx | 32 ++-----------
java/docs/api/class-locatorassertions.mdx | 32 ++-----------
nodejs/docs/api/class-locatorassertions.mdx | 2 +-
python/docs/api/class-locatorassertions.mdx | 51 ++-------------------
4 files changed, 10 insertions(+), 107 deletions(-)
diff --git a/dotnet/docs/api/class-locatorassertions.mdx b/dotnet/docs/api/class-locatorassertions.mdx
index 93d1146f77..b89e5005fa 100644
--- a/dotnet/docs/api/class-locatorassertions.mdx
+++ b/dotnet/docs/api/class-locatorassertions.mdx
@@ -446,7 +446,7 @@ await Expect(locator).ToHaveAccessibleNameAsync("Save to disk");
```
**Arguments**
-- `name` [string] | [Regex] | [IEnumerable]<[string] | [Regex]>#
+- `name` [string] | [Regex]#
Expected accessible name.
- `options` `LocatorAssertionsToHaveAccessibleNameOptions?` *(optional)*
@@ -811,9 +811,9 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex(
---
-### ToMatchAriaSnapshotAsync(expected, options) {#locator-assertions-to-match-aria-snapshot-1}
+### ToMatchAriaSnapshotAsync {#locator-assertions-to-match-aria-snapshot-1}
-Added in: v1.49locatorAssertions.ToMatchAriaSnapshotAsync(expected, options)
+Added in: v1.49locatorAssertions.ToMatchAriaSnapshotAsync
Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
@@ -839,32 +839,6 @@ await Expect(page.Locator("body")).ToMatchAriaSnapshotAsync(@"
---
-### ToMatchAriaSnapshotAsync(options) {#locator-assertions-to-match-aria-snapshot-2}
-
-Added in: v1.50locatorAssertions.ToMatchAriaSnapshotAsync(options)
-
-Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
-
-**Usage**
-
-```csharp
-await Expect(page.Locator("body")).ToMatchAriaSnapshotAsync(new { Path = "/path/to/snapshot.yml" });
-```
-
-**Arguments**
-- `options` `LocatorAssertionsToMatchAriaSnapshotOptions?` *(optional)*
- - `Path` [string]? *(optional)*#
-
- Path to the YAML snapshot file.
- - `Timeout` [float]? *(optional)*#
-
- Time to retry the assertion for in milliseconds. Defaults to `5000`.
-
-**Returns**
-- [void]#
-
----
-
## Properties
### Not {#locator-assertions-not}
diff --git a/java/docs/api/class-locatorassertions.mdx b/java/docs/api/class-locatorassertions.mdx
index d228f52a67..ac4c235b14 100644
--- a/java/docs/api/class-locatorassertions.mdx
+++ b/java/docs/api/class-locatorassertions.mdx
@@ -171,7 +171,7 @@ assertThat(locator).hasAccessibleName("Save to disk");
```
**Arguments**
-- `name` [String] | [Pattern] | [List]<[String] | [Pattern]>#
+- `name` [String] | [Pattern]#
Expected accessible name.
- `options` `LocatorAssertions.HasAccessibleNameOptions` *(optional)*
@@ -788,9 +788,9 @@ assertThat(
---
-### matchesAriaSnapshot(expected) {#locator-assertions-to-match-aria-snapshot-1}
+### matchesAriaSnapshot {#locator-assertions-to-match-aria-snapshot-1}
-Added in: v1.49locatorAssertions.matchesAriaSnapshot(expected)
+Added in: v1.49locatorAssertions.matchesAriaSnapshot
Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
@@ -816,32 +816,6 @@ assertThat(page.locator("body")).matchesAriaSnapshot("""
---
-### matchesAriaSnapshot(options) {#locator-assertions-to-match-aria-snapshot-2}
-
-Added in: v1.50locatorAssertions.matchesAriaSnapshot(options)
-
-Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
-
-**Usage**
-
-```java
-assertThat(page.locator("body")).matchesAriaSnapshot(new LocatorAssertions.MatchesAriaSnapshotOptions().setPath("/path/to/snapshot.yml"));
-```
-
-**Arguments**
-- `options` `LocatorAssertions.MatchesAriaSnapshotOptions` *(optional)*
- - `setPath` [String] *(optional)*#
-
- Path to the YAML snapshot file.
- - `setTimeout` [double] *(optional)*#
-
- Time to retry the assertion for in milliseconds. Defaults to `5000`.
-
-**Returns**
-- [void]#
-
----
-
## Properties
### not() {#locator-assertions-not}
diff --git a/nodejs/docs/api/class-locatorassertions.mdx b/nodejs/docs/api/class-locatorassertions.mdx
index a03d6fc630..723a115e5b 100644
--- a/nodejs/docs/api/class-locatorassertions.mdx
+++ b/nodejs/docs/api/class-locatorassertions.mdx
@@ -437,7 +437,7 @@ await expect(locator).toHaveAccessibleName('Save to disk');
```
**Arguments**
-- `name` [string] | [RegExp] | [Array]<[string] | [RegExp]>#
+- `name` [string] | [RegExp]#
Expected accessible name.
- `options` [Object] *(optional)*
diff --git a/python/docs/api/class-locatorassertions.mdx b/python/docs/api/class-locatorassertions.mdx
index 6b0125c3a6..c8cdb2ebb2 100644
--- a/python/docs/api/class-locatorassertions.mdx
+++ b/python/docs/api/class-locatorassertions.mdx
@@ -1456,7 +1456,7 @@ await expect(locator).to_have_accessible_name("Save to disk")
**Arguments**
-- `name` [str] | [Pattern] | [List]\[[str] | [Pattern]\]#
+- `name` [str] | [Pattern]#
Expected accessible name.
- `ignore_case` [bool] *(optional)*#
@@ -2124,9 +2124,9 @@ await expect(locator).to_have_values([re.compile(r"R"), re.compile(r"G")])
---
-### to_match_aria_snapshot(expected) {#locator-assertions-to-match-aria-snapshot-1}
+### to_match_aria_snapshot {#locator-assertions-to-match-aria-snapshot-1}
-Added in: v1.49locatorAssertions.to_match_aria_snapshot(expected)
+Added in: v1.49locatorAssertions.to_match_aria_snapshot
Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
@@ -2173,51 +2173,6 @@ await expect(page.locator('body')).to_match_aria_snapshot('''
**Returns**
- [NoneType]#
----
-
-### to_match_aria_snapshot(**kwargs) {#locator-assertions-to-match-aria-snapshot-2}
-
-Added in: v1.50locatorAssertions.to_match_aria_snapshot(**kwargs)
-
-Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).
-
-**Usage**
-
-
-
-
-```py
-expect(page.locator('body')).to_match_aria_snapshot(path='/path/to/snapshot.yml')
-```
-
-
-
-
-```py
-await expect(page.locator('body')).to_match_aria_snapshot(path='/path/to/snapshot.yml')
-```
-
-
-
-
-**Arguments**
-- `path` [str] *(optional)*#
-
- Path to the YAML snapshot file.
-- `timeout` [float] *(optional)*#
-
- Time to retry the assertion for in milliseconds. Defaults to `5000`.
-
-**Returns**
-- [NoneType]#
-
[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"