feat(aria): update type in the locator assertion file
Update type in the doc References #32593
This commit is contained in:
parent
988c876a62
commit
423b85a1bf
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
2
packages/playwright/types/test.d.ts
vendored
2
packages/playwright/types/test.d.ts
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue