Type update

This commit is contained in:
Adam Gastineau 2025-01-21 12:23:58 -08:00
parent 8f1a6838d8
commit 29024805b2

View file

@ -8800,14 +8800,18 @@ interface PageAssertions {
* await expect(page).toHaveURL(/.*checkout/);
* ```
*
* @param urlOrRegExp Expected URL string or RegExp.
* @param urlRegExOrPredicate Expected URL string, RegExp, or predicate receiving [URL] to match. When a
* [`baseURL`](https://playwright.dev/docs/api/class-browser#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.
* @param options
*/
toHaveURL(urlOrRegExp: string|RegExp, options?: {
toHaveURL(urlRegExOrPredicate: string|RegExp|((url: URL) => boolean), options?: {
/**
* Whether to perform case-insensitive match.
* [`ignoreCase`](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-url-option-ignore-case)
* option takes precedence over the corresponding regular expression flag if specified.
* option takes precedence over the corresponding regular expression parameter if specified. The predicate parameter
* ignores this flag.
*/
ignoreCase?: boolean;