This commit is contained in:
Adam Gastineau 2025-02-26 11:00:06 -08:00
parent b4b6e93c0f
commit f2371ca691
2 changed files with 6 additions and 6 deletions

View file

@ -296,10 +296,10 @@ Ensures the page is navigated to the given URL.
**Usage** **Usage**
```js ```js
// Check for the page URL to be "https://playwright.dev/docs/intro" (including query string) // Check for the page URL to be 'https://playwright.dev/docs/intro' (including query string)
await expect(page).toHaveURL("https://playwright.dev/docs/intro"); await expect(page).toHaveURL('https://playwright.dev/docs/intro');
// Check for the page URL to contain "doc", followed by an optional "s", followed by "/" // Check for the page URL to contain 'doc', followed by an optional 's', followed by '/'
await expect(page).toHaveURL(/docs?\//); await expect(page).toHaveURL(/docs?\//);
// Check for the predicate to be satisfied // Check for the predicate to be satisfied

View file

@ -8902,10 +8902,10 @@ interface PageAssertions {
* **Usage** * **Usage**
* *
* ```js * ```js
* // Check for the page URL to be "https://playwright.dev/docs/intro" (including query string) * // Check for the page URL to be 'https://playwright.dev/docs/intro' (including query string)
* await expect(page).toHaveURL("https://playwright.dev/docs/intro"); * await expect(page).toHaveURL('https://playwright.dev/docs/intro');
* *
* // Check for the page URL to contain "doc", followed by an optional "s", followed by "/" * // Check for the page URL to contain 'doc', followed by an optional 's', followed by '/'
* await expect(page).toHaveURL(/docs?\//); * await expect(page).toHaveURL(/docs?\//);
* *
* // Check for the predicate to be satisfied * // Check for the predicate to be satisfied