Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: add links to the recently added assertions (#35837)
Yury Semikhatsky8ad8774457ac
diff --git a/docs/src/test-assertions-csharp-java-python.md b/docs/src/test-assertions-csharp-java-python.mdindex a220d9ac30..07f66d3192 100644--- a/docs/src/test-assertions-csharp-java-python.md+++ b/docs/src/test-assertions-csharp-java-python.md@@ -17,6 +17,7 @@ title: "Assertions"| [`method: LocatorAssertions.toBeHidden`] | Element is not visible || [`method: LocatorAssertions.toBeInViewport`] | Element intersects viewport || [`method: LocatorAssertions.toBeVisible`] | Element is visible |+| [`method: LocatorAssertions.toContainClass`] | Element has specified CSS classes || [`method: LocatorAssertions.toContainText`] | Element contains text || [`method: LocatorAssertions.toHaveAccessibleDescription`] | Element has a matching [accessible description](https://w3c.github.io/accname/#dfn-accessible-description) || [`method: LocatorAssertions.toHaveAccessibleName`] | Element has a matching [accessible name](https://w3c.github.io/accname/#dfn-accessible-name) |@@ -30,6 +31,7 @@ title: "Assertions"| [`method: LocatorAssertions.toHaveText`] | Element matches text || [`method: LocatorAssertions.toHaveValue`] | Input has a value || [`method: LocatorAssertions.toHaveValues`] | Select has options selected |+| [`method: LocatorAssertions.toMatchAriaSnapshot`] | Element matches provided Aria snapshot || [`method: PageAssertions.toHaveTitle`] | Page has a title || [`method: PageAssertions.toHaveURL`] | Page has a URL || [`method: APIResponseAssertions.toBeOK`] | Response has an OK status |diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.mdindex badd8c88e7..3efc0db5e5 100644--- a/docs/src/test-assertions-js.md+++ b/docs/src/test-assertions-js.md@@ -40,10 +40,11 @@ Note that retrying assertions are async, so you must `await` them.| [await expect(locator).toBeInViewport()](./api/class-locatorassertions.md#locator-assertions-to-be-in-viewport) | Element intersects viewport || [await expect(locator).toBeVisible()](./api/class-locatorassertions.md#locator-assertions-to-be-visible) | Element is visible || [await expect(locator).toContainText()](./api/class-locatorassertions.md#locator-assertions-to-contain-text) | Element contains text |+| [await expect(locator).toContainClass()](./api/class-locatorassertions.md#locator-assertions-to-contain-class) | Element has specified CSS classes || [await expect(locator).toHaveAccessibleDescription()](./api/class-locatorassertions.md#locator-assertions-to-have-accessible-description) | Element has a matching [accessible description](https://w3c.github.io/accname/#dfn-accessible-description) || [await expect(locator).toHaveAccessibleName()](./api/class-locatorassertions.md#locator-assertions-to-have-accessible-name) | Element has a matching [accessible name](https://w3c.github.io/accname/#dfn-accessible-name) || [await expect(locator).toHaveAttribute()](./api/class-locatorassertions.md#locator-assertions-to-have-attribute) | Element has a DOM attribute |-| [await expect(locator).toHaveClass()](./api/class-locatorassertions.md#locator-assertions-to-have-class) | Element has a class property |+| [await expect(locator).toHaveClass()](./api/class-locatorassertions.md#locator-assertions-to-have-class) | Element has specified CSS class property || [await expect(locator).toHaveCount()](./api/class-locatorassertions.md#locator-assertions-to-have-count) | List has exact number of children || [await expect(locator).toHaveCSS()](./api/class-locatorassertions.md#locator-assertions-to-have-css) | Element has CSS property || [await expect(locator).toHaveId()](./api/class-locatorassertions.md#locator-assertions-to-have-id) | Element has an ID |@@ -53,6 +54,7 @@ Note that retrying assertions are async, so you must `await` them.| [await expect(locator).toHaveText()](./api/class-locatorassertions.md#locator-assertions-to-have-text) | Element matches text || [await expect(locator).toHaveValue()](./api/class-locatorassertions.md#locator-assertions-to-have-value) | Input has a value || [await expect(locator).toHaveValues()](./api/class-locatorassertions.md#locator-assertions-to-have-values) | Select has options selected |+| [await expect(locator).toMatchAriaSnapshot()](./api/class-locatorassertions.md#locator-assertions-to-match-aria-snapshot) | Element matches the Aria snapshot || [await expect(page).toHaveScreenshot()](./api/class-pageassertions.md#page-assertions-to-have-screenshot-1) | Page has a screenshot || [await expect(page).toHaveTitle()](./api/class-pageassertions.md#page-assertions-to-have-title) | Page has a title || [await expect(page).toHaveURL()](./api/class-pageassertions.md#page-assertions-to-have-url) | Page has a URL |