mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: clarify toHaveURL parameter semantics (#15723)
This commit is contained in:
parent
d62baa005f
commit
582b5e08b2
@ -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
|
||||
|
||||
2
packages/playwright-test/types/test.d.ts
vendored
2
packages/playwright-test/types/test.d.ts
vendored
@ -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?: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user