Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (05-09-22) (microsoft#758)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
playwrightmachine and github-actions[bot] authored Sep 5, 2022
1 parent a986d28 commit b85eaeb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dotnet/docs/test-assertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ await Expect(locator).ToBeFocusedAsync();
- `Timeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-option-timeout"/> &#60;[double]?&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-hidden-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-return"/> &#60;[void]&#62;<a href="#locator-assertions-to-be-hidden-return" class="list-anchor">#</a>

Ensures the [Locator] points to a hidden DOM node, which is the opposite of [visible](./actionability.mdx#visible).
Ensures that [Locator] either does not resolve to any DOM node, or resolves to a [non-visible](./actionability.mdx#visible) one.

```csharp
var locator = Page.Locator(".my-element");
Expand All @@ -182,7 +182,7 @@ await Expect(locator).ToBeHiddenAsync();
- `Timeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-option-timeout"/> &#60;[double]?&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-visible-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-return"/> &#60;[void]&#62;<a href="#locator-assertions-to-be-visible-return" class="list-anchor">#</a>

Ensures the [Locator] points to a [visible](./actionability.mdx#visible) DOM node.
Ensures that [Locator] points to an [attached](./actionability.mdx#visible) and [visible](./actionability.mdx#visible) DOM node.

```csharp
var locator = Page.Locator(".my-element");
Expand Down
4 changes: 2 additions & 2 deletions java/docs/test-assertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ assertThat(page.locator("input")).isFocused();
- `setTimeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-option-timeout"/> &#60;[double]&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-hidden-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-return"/> &#60;[void]&#62;<a href="#locator-assertions-to-be-hidden-return" class="list-anchor">#</a>

Ensures the [Locator] points to a hidden DOM node, which is the opposite of [visible](./actionability.mdx#visible).
Ensures that [Locator] either does not resolve to any DOM node, or resolves to a [non-visible](./actionability.mdx#visible) one.

```java
assertThat(page.locator(".my-element")).isHidden();
Expand All @@ -173,7 +173,7 @@ assertThat(page.locator(".my-element")).isHidden();
- `setTimeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-option-timeout"/> &#60;[double]&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-visible-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-return"/> &#60;[void]&#62;<a href="#locator-assertions-to-be-visible-return" class="list-anchor">#</a>

Ensures the [Locator] points to a [visible](./actionability.mdx#visible) DOM node.
Ensures that [Locator] points to an [attached](./actionability.mdx#visible) and [visible](./actionability.mdx#visible) DOM node.

```java
assertThat(page.locator(".my-element")).isVisible();
Expand Down
4 changes: 2 additions & 2 deletions nodejs/docs/test-assertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ await expect(locator).toBeFocused();
- `timeout?`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-option-timeout"/> &#60;[number]&#62; Time to retry the assertion for. Defaults to `timeout` in `TestConfig.expect`. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-hidden-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-return"/> &#60;[Promise]<[void]>&#62;<a href="#locator-assertions-to-be-hidden-return" class="list-anchor">#</a>
Ensures the [Locator] points to a hidden DOM node, which is the opposite of [visible](./actionability.mdx#visible).
Ensures that [Locator] either does not resolve to any DOM node, or resolves to a [non-visible](./actionability.mdx#visible) one.
```js
const locator = page.locator('.my-element');
Expand All @@ -280,7 +280,7 @@ await expect(locator).toBeHidden();
- `timeout?`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-option-timeout"/> &#60;[number]&#62; Time to retry the assertion for. Defaults to `timeout` in `TestConfig.expect`. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-visible-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-return"/> &#60;[Promise]<[void]>&#62;<a href="#locator-assertions-to-be-visible-return" class="list-anchor">#</a>
Ensures the [Locator] points to a [visible](./actionability.mdx#visible) DOM node.
Ensures that [Locator] points to an [attached](./actionability.mdx#visible) and [visible](./actionability.mdx#visible) DOM node.
```js
const locator = page.locator('.my-element');
Expand Down
4 changes: 2 additions & 2 deletions python/docs/test-assertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ await expect(locator).to_be_focused()
- `timeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-option-timeout"/> &#60;[float]&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-hidden-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-hidden-return"/> &#60;[NoneType]&#62;<a href="#locator-assertions-to-be-hidden-return" class="list-anchor">#</a>

Ensures the [Locator] points to a hidden DOM node, which is the opposite of [visible](./actionability.mdx#visible).
Ensures that [Locator] either does not resolve to any DOM node, or resolves to a [non-visible](./actionability.mdx#visible) one.

<Tabs
groupId="python-flavor"
Expand Down Expand Up @@ -550,7 +550,7 @@ await expect(locator).to_be_hidden()
- `timeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-option-timeout"/> &#60;[float]&#62; Time to retry the assertion for. <font size="2">Added in: v1.18</font><a href="#locator-assertions-to-be-visible-option-timeout" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="locator-assertions-to-be-visible-return"/> &#60;[NoneType]&#62;<a href="#locator-assertions-to-be-visible-return" class="list-anchor">#</a>

Ensures the [Locator] points to a [visible](./actionability.mdx#visible) DOM node.
Ensures that [Locator] points to an [attached](./actionability.mdx#visible) and [visible](./actionability.mdx#visible) DOM node.

<Tabs
groupId="python-flavor"
Expand Down

0 comments on commit b85eaeb

Please sign in to comment.