Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: clarify toHaveURL parameter semantics (#15723)
Yury Semikhatsky582b5e08b231
diff --git a/docs/src/api/class-pageassertions.md b/docs/src/api/class-pageassertions.mdindex 68d02b23ed..9163c1af62 100644--- a/docs/src/api/class-pageassertions.md+++ b/docs/src/api/class-pageassertions.md@@ -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.18diff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.tsindex 102f374d98..ac6aba285d 100644--- a/packages/playwright-test/types/test.d.ts+++ b/packages/playwright-test/types/test.d.ts@@ -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?: {