docs(assertions): fix wrong toHaveText param description (#19213)

Fixes https://github.com/microsoft/playwright/issues/19202
pull/19219/head
Max Schmitt 2 months ago committed by GitHub
parent d63f2542a2
commit 62b28c89b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -360,7 +360,7 @@ The opposite of [`method: LocatorAssertions.toHaveText`].
* since: v1.18
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>
Expected substring or RegExp or a list of those.
Expected string or RegExp or a list of those.
### option: LocatorAssertions.NotToHaveText.ignoreCase
* since: v1.23
@ -1554,21 +1554,21 @@ await Expect(Page.Locator("ul")).ToHaveTextAsync(new string[] {"Text 1", "Text 2
* langs: js
- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>
Expected substring or RegExp or a list of those.
Expected string or RegExp or a list of those.
### param: LocatorAssertions.toHaveText.expected
* since: v1.18
* langs: python
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>
Expected substring or RegExp or a list of those.
Expected string or RegExp or a list of those.
### param: LocatorAssertions.toHaveText.expected
* since: v1.18
* langs: java, csharp
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>>
Expected substring or RegExp or a list of those.
Expected string or RegExp or a list of those.
### option: LocatorAssertions.toHaveText.ignoreCase
* since: v1.23

@ -4011,7 +4011,7 @@ interface LocatorAssertions {
* await expect(page.locator('ul')).toHaveText(['Text 1', 'Text 2', 'Text 3']);
* ```
*
* @param expected Expected substring or RegExp or a list of those.
* @param expected Expected string or RegExp or a list of those.
* @param options
*/
toHaveText(expected: string|RegExp|Array<string|RegExp>, options?: {

Loading…
Cancel
Save