This commit is contained in:
parent
405c55b070
commit
6dc18a7c8e
|
|
@ -116,7 +116,7 @@ The opposite of [`method: PageAssertions.toHaveURL`].
|
||||||
* since: v1.18
|
* since: v1.18
|
||||||
- `urlOrRegExp` <[string]|[RegExp]>
|
- `urlOrRegExp` <[string]|[RegExp]>
|
||||||
|
|
||||||
Expected substring or RegExp.
|
Expected URL string or RegExp.
|
||||||
|
|
||||||
### option: PageAssertions.NotToHaveURL.timeout = %%-js-assertions-timeout-%%
|
### option: PageAssertions.NotToHaveURL.timeout = %%-js-assertions-timeout-%%
|
||||||
* since: v1.18
|
* since: v1.18
|
||||||
|
|
@ -285,7 +285,7 @@ await Expect(page).ToHaveURL(new Regex(".*checkout"));
|
||||||
* since: v1.18
|
* since: v1.18
|
||||||
- `urlOrRegExp` <[string]|[RegExp]>
|
- `urlOrRegExp` <[string]|[RegExp]>
|
||||||
|
|
||||||
Expected substring or RegExp.
|
Expected URL string or RegExp.
|
||||||
|
|
||||||
### option: PageAssertions.toHaveURL.timeout = %%-js-assertions-timeout-%%
|
### option: PageAssertions.toHaveURL.timeout = %%-js-assertions-timeout-%%
|
||||||
* since: v1.18
|
* 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/);
|
* await expect(page).toHaveURL(/.*checkout/);
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @param urlOrRegExp Expected substring or RegExp.
|
* @param urlOrRegExp Expected URL string or RegExp.
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
toHaveURL(urlOrRegExp: string|RegExp, options?: {
|
toHaveURL(urlOrRegExp: string|RegExp, options?: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue