Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: add a toHaveClass hint (#11249)

Pavel Feldman303d49e8de35
diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md
index 9e0087d229..9c53d95875 100644
--- a/docs/src/api/class-locatorassertions.md
+++ b/docs/src/api/class-locatorassertions.md
@@ -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');