docs: add a toHaveClass hint (#11249)

This commit is contained in:
Pavel Feldman 2022-01-07 09:13:46 -08:00 committed by GitHub
parent f0269e7144
commit 303d49e8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,7 +543,7 @@ expect(locator).to_contain_text("substring")
expect(locator).to_contain_text(re.compile(r"\d messages"))
```
Note that if array is passed as an expected value, entire lists can be asserted:
Note that if array is passed as an expected value, entire lists of elements can be asserted:
```js
const locator = page.locator('list > .list-item');
@ -660,7 +660,7 @@ locator = page.locator("#component")
expect(locator).to_have_class(re.compile(r"selected"))
```
Note that if array is passed as an expected value, entire lists can be asserted:
Note that if array is passed as an expected value, entire lists of elements can be asserted:
```js
const locator = page.locator('list > .component');
@ -891,7 +891,7 @@ expect(locator).to_have_text(re.compile(r"Welcome, Test User"))
expect(locator).to_have_text(re.compile(r"Welcome, .*"))
```
Note that if array is passed as an expected value, entire lists can be asserted:
Note that if array is passed as an expected value, entire lists of elements can be asserted:
```js
const locator = page.locator('list > .component');