From 27bf2effea8075784849e01b297d41bda4e979b2 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sat, 25 Jan 2025 10:10:48 +0000
Subject: [PATCH] feat(roll): roll to ToT Playwright (25-01-25)
---
dotnet/docs/api/class-pageassertions.mdx | 6 +++---
java/docs/api/class-pageassertions.mdx | 6 +++---
nodejs/docs/api/class-locatorassertions.mdx | 1 -
nodejs/docs/api/class-pageassertions.mdx | 6 +++---
python/docs/api/class-pageassertions.mdx | 6 +++---
5 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/dotnet/docs/api/class-pageassertions.mdx b/dotnet/docs/api/class-pageassertions.mdx
index 3eb93c37452..7ada1a97a5c 100644
--- a/dotnet/docs/api/class-pageassertions.mdx
+++ b/dotnet/docs/api/class-pageassertions.mdx
@@ -72,13 +72,13 @@ await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));
```
**Arguments**
-- `urlOrRegExp` [string] | [Regex] Added in: v1.18#
+- `url` [string] | [Regex] | [Func]<[string], bool> Added in: v1.18#
- Expected URL string or RegExp.
+ Expected URL string, RegExp, or predicate receiving [URL] to match. When a [BaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
- `options` `PageAssertionsToHaveURLOptions?` *(optional)*
- `IgnoreCase` [bool]? *(optional)* Added in: v1.44#
- Whether to perform case-insensitive match. [IgnoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression flag if specified.
+ Whether to perform case-insensitive match. [IgnoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression parameter if specified. A provided predicate ignores this flag.
- `Timeout` [float]? *(optional)* Added in: v1.18#
Time to retry the assertion for in milliseconds. Defaults to `5000`.
diff --git a/java/docs/api/class-pageassertions.mdx b/java/docs/api/class-pageassertions.mdx
index e3e0e05fcae..43ee013d46e 100644
--- a/java/docs/api/class-pageassertions.mdx
+++ b/java/docs/api/class-pageassertions.mdx
@@ -68,13 +68,13 @@ assertThat(page).hasURL(".com");
```
**Arguments**
-- `urlOrRegExp` [String] | [Pattern] Added in: v1.18#
+- `url` [String] | [Pattern] | [Predicate]<[String]> Added in: v1.18#
- Expected URL string or RegExp.
+ Expected URL string, RegExp, or predicate receiving [URL] to match. When a [setBaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
- `options` `PageAssertions.HasURLOptions` *(optional)*
- `setIgnoreCase` [boolean] *(optional)* Added in: v1.44#
- Whether to perform case-insensitive match. [setIgnoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression flag if specified.
+ Whether to perform case-insensitive match. [setIgnoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression parameter if specified. A provided predicate ignores this flag.
- `setTimeout` [double] *(optional)* Added in: v1.18#
Time to retry the assertion for in milliseconds. Defaults to `5000`.
diff --git a/nodejs/docs/api/class-locatorassertions.mdx b/nodejs/docs/api/class-locatorassertions.mdx
index c5f49cd24e9..f2d3b71a041 100644
--- a/nodejs/docs/api/class-locatorassertions.mdx
+++ b/nodejs/docs/api/class-locatorassertions.mdx
@@ -1002,7 +1002,6 @@ Asserts that the target element matches the given [accessibility snapshot](../ar
```js
await expect(page.locator('body')).toMatchAriaSnapshot();
await expect(page.locator('body')).toMatchAriaSnapshot({ name: 'snapshot' });
-await expect(page.locator('body')).toMatchAriaSnapshot({ path: '/path/to/snapshot.yml' });
```
**Arguments**
diff --git a/nodejs/docs/api/class-pageassertions.mdx b/nodejs/docs/api/class-pageassertions.mdx
index 0769c76fe91..56ebdaf75f6 100644
--- a/nodejs/docs/api/class-pageassertions.mdx
+++ b/nodejs/docs/api/class-pageassertions.mdx
@@ -224,13 +224,13 @@ await expect(page).toHaveURL(/.*checkout/);
```
**Arguments**
-- `urlOrRegExp` [string] | [RegExp] Added in: v1.18#
+- `url` [string] | [RegExp] | [function]\([URL]\):[boolean] Added in: v1.18#
- Expected URL string or RegExp.
+ Expected URL string, RegExp, or predicate receiving [URL] to match. When a [baseURL](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
- `options` [Object] *(optional)*
- `ignoreCase` [boolean] *(optional)* Added in: v1.44#
- Whether to perform case-insensitive match. [ignoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression flag if specified.
+ Whether to perform case-insensitive match. [ignoreCase](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression parameter if specified. A provided predicate ignores this flag.
- `timeout` [number] *(optional)* Added in: v1.18#
Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
diff --git a/python/docs/api/class-pageassertions.mdx b/python/docs/api/class-pageassertions.mdx
index bac5b966a5d..457fe97c6cd 100644
--- a/python/docs/api/class-pageassertions.mdx
+++ b/python/docs/api/class-pageassertions.mdx
@@ -199,12 +199,12 @@ await expect(page).to_have_url(re.compile(".*checkout"))
**Arguments**
-- `url_or_reg_exp` [str] | [Pattern] Added in: v1.18#
+- `url` [str] | [Pattern] | [Callable]\[[URL]\]:[bool] Added in: v1.18#
- Expected URL string or RegExp.
+ Expected URL string, RegExp, or predicate receiving [URL] to match. When a [base_url](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
- `ignore_case` [bool] *(optional)* Added in: v1.44#
- Whether to perform case-insensitive match. [ignore_case](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression flag if specified.
+ Whether to perform case-insensitive match. [ignore_case](/api/class-pageassertions.mdx#page-assertions-to-have-url-option-ignore-case) option takes precedence over the corresponding regular expression parameter if specified. A provided predicate ignores this flag.
- `timeout` [float] *(optional)* Added in: v1.18#
Time to retry the assertion for in milliseconds. Defaults to `5000`.