feat(aria): update type in the locator assertion file

Update type in the doc

References #32593
This commit is contained in:
anait-airiian 2024-10-25 20:15:07 +02:00
parent 988c876a62
commit 423b85a1bf
2 changed files with 2 additions and 2 deletions

View file

@ -1236,7 +1236,7 @@ await Expect(locator).toHaveAccessibleNameAsync("Save to disk");
### param: LocatorAssertions.toHaveAccessibleName.name
* since: v1.44
- `name` <[string]|[RegExp]>
- `name` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>>
Expected accessible name.

View file

@ -7898,7 +7898,7 @@ interface LocatorAssertions {
* @param name Expected accessible name.
* @param options
*/
toHaveAccessibleName(name: string | RegExp | (string | RegExp)[], options?: {
toHaveAccessibleName(name: string|RegExp|ReadonlyArray<string>|ReadonlyArray<RegExp>, options?: {
/**
* Whether to perform case-insensitive match.
* [`ignoreCase`](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-accessible-name-option-ignore-case)