cherry-pick(#27559): docs: Fixing a release version of a method toHaveAttribute (#27560)

This PR cherry-picks the following commits:

- 117f3f1298

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Playwright Service 2023-10-11 23:54:35 -07:00 committed by GitHub
parent 3049d99bc8
commit a115439b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1152,7 +1152,7 @@ Expected attribute value.
* since: v1.18
## async method: LocatorAssertions.toHaveAttribute#2
* since: v1.40
* since: v1.39
* langs: js
Ensures the [Locator] points to an element with given attribute. The method will assert attribute
@ -1166,13 +1166,13 @@ await expect(locator).not.toHaveAttribute('open');
```
### param: LocatorAssertions.toHaveAttribute#2.name
* since: v1.40
* since: v1.39
- `name` <[string]>
Attribute name.
### option: LocatorAssertions.toHaveAttribute#2.timeout = %%-js-assertions-timeout-%%
* since: v1.40
* since: v1.39
## async method: LocatorAssertions.toHaveClass
* since: v1.20