Update docs

This commit is contained in:
Adam Gastineau 2025-01-21 12:17:55 -08:00
parent f1f2bde565
commit 8f1a6838d8

View file

@ -323,17 +323,18 @@ expect(page).to_have_url(re.compile(".*checkout"))
await Expect(Page).ToHaveURLAsync(new Regex(".*checkout")); await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));
``` ```
### param: PageAssertions.toHaveURL.urlOrRegExp ### param: PageAssertions.toHaveURL.urlRegExOrPredicate
* since: v1.18 * since: v1.18
- `urlOrRegExp` <[string]|[RegExp]> - `urlRegExOrPredicate` <[string]|[RegExp]|[function]\([URL]\):[boolean]>
Expected URL string or RegExp. Expected URL string, RegExp, or predicate receiving [URL] to match.
When a [`option: Browser.newContext.baseURL`] 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.
### option: PageAssertions.toHaveURL.ignoreCase ### option: PageAssertions.toHaveURL.ignoreCase
* since: v1.44 * since: v1.44
- `ignoreCase` <[boolean]> - `ignoreCase` <[boolean]>
Whether to perform case-insensitive match. [`option: ignoreCase`] option takes precedence over the corresponding regular expression flag if specified. Whether to perform case-insensitive match. [`option: ignoreCase`] option takes precedence over the corresponding regular expression parameter if specified. The predicate parameter ignores this flag.
### option: PageAssertions.toHaveURL.timeout = %%-js-assertions-timeout-%% ### option: PageAssertions.toHaveURL.timeout = %%-js-assertions-timeout-%%
* since: v1.18 * since: v1.18