From eaee864b2cdd8f73a3ef337a083f03a9b7947235 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 22 Nov 2021 18:39:10 +0100 Subject: [PATCH] docs: python assertion type fixes (#10465) --- docs/src/api/class-locatorassertions.md | 27 ++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md index 2970bd0dc8..628d80b4d4 100644 --- a/docs/src/api/class-locatorassertions.md +++ b/docs/src/api/class-locatorassertions.md @@ -91,7 +91,7 @@ The opposite of [`method: LocatorAssertions.toBeVisible`]. The opposite of [`method: LocatorAssertions.toContainText`]. ### param: LocatorAssertions.NotToContainText.expected -- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> Expected substring or RegExp or a list of those. @@ -125,7 +125,7 @@ Expected attribute value. The opposite of [`method: LocatorAssertions.toHaveClass`]. ### param: LocatorAssertions.NotToHaveClass.expected -- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> Expected class or RegExp or a list of those. @@ -195,7 +195,7 @@ Property value. The opposite of [`method: LocatorAssertions.toHaveText`]. ### param: LocatorAssertions.NotToHaveText.expected -- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> Expected substring or RegExp or a list of those. @@ -340,6 +340,13 @@ assertThat(page.locator("list > .list-item")).containsText(new String[] {"Text 1 ``` ### param: LocatorAssertions.toContainText.expected +* langs: python +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> + +Expected substring or RegExp or a list of those. + +### param: LocatorAssertions.toContainText.expected +* langs: java - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> Expected substring or RegExp or a list of those. @@ -391,6 +398,13 @@ assertThat(page.locator("list > .component")).hasClass(new String[] {"component" ``` ### param: LocatorAssertions.toHaveClass.expected +* langs: python +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> + +Expected class or RegExp or a list of those. + +### param: LocatorAssertions.toHaveClass.expected +* langs: java - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> Expected class or RegExp or a list of those. @@ -495,6 +509,13 @@ assertThat(page.locator("list > .component")).hasText(new String[] {"Text 1", "T ``` ### param: LocatorAssertions.toHaveText.expected +* langs: python +- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>> + +Expected substring or RegExp or a list of those. + +### param: LocatorAssertions.toHaveText.expected +* langs: java - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>> Expected substring or RegExp or a list of those.