Type update
This commit is contained in:
parent
8f1a6838d8
commit
29024805b2
10
packages/playwright/types/test.d.ts
vendored
10
packages/playwright/types/test.d.ts
vendored
|
|
@ -8800,14 +8800,18 @@ interface PageAssertions {
|
||||||
* await expect(page).toHaveURL(/.*checkout/);
|
* 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
|
* @param options
|
||||||
*/
|
*/
|
||||||
toHaveURL(urlOrRegExp: string|RegExp, options?: {
|
toHaveURL(urlRegExOrPredicate: string|RegExp|((url: URL) => boolean), options?: {
|
||||||
/**
|
/**
|
||||||
* Whether to perform case-insensitive match.
|
* Whether to perform case-insensitive match.
|
||||||
* [`ignoreCase`](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-url-option-ignore-case)
|
* [`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;
|
ignoreCase?: boolean;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue