docs: clarify toHaveURL parameter semantics (#15723)

This commit is contained in:
Yury Semikhatsky 2022-07-15 11:09:20 -07:00 committed by GitHub
parent d62baa005f
commit 582b5e08b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ The opposite of [`method: PageAssertions.toHaveURL`].
* since: v1.18
- `urlOrRegExp` <[string]|[RegExp]>
Expected substring or RegExp.
Expected URL string or RegExp.
### option: PageAssertions.NotToHaveURL.timeout = %%-js-assertions-timeout-%%
* since: v1.18
@ -285,7 +285,7 @@ await Expect(page).ToHaveURL(new Regex(".*checkout"));
* since: v1.18
- `urlOrRegExp` <[string]|[RegExp]>
Expected substring or RegExp.
Expected URL string or RegExp.
### option: PageAssertions.toHaveURL.timeout = %%-js-assertions-timeout-%%
* since: v1.18

View File

@ -3987,7 +3987,7 @@ interface PageAssertions {
* await expect(page).toHaveURL(/.*checkout/);
* ```
*
* @param urlOrRegExp Expected substring or RegExp.
* @param urlOrRegExp Expected URL string or RegExp.
* @param options
*/
toHaveURL(urlOrRegExp: string|RegExp, options?: {