Skip to content

Commit

Permalink
docs: fix system expectations usage examples.
Browse files Browse the repository at this point in the history
See issue: #4606.
  • Loading branch information
asafkorem committed Oct 12, 2024
1 parent 440fc5a commit 8f21eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ System expectations are used to assert the state of elements within the system:
Asserts that the element exists.

```js
await system.element(by.system.label('Allow')).toExist();
await expect(system.element(by.system.label('Allow'))).toExist();
```

### `not`

Negates the expectation.

```js
await system.element(by.system.label('Allow')).not.toExist();
await expect(system.element(by.system.label('Allow'))).not.toExist();
```

[`by.system.label(label)`]: #bysystemlabellabel
Expand Down

0 comments on commit 8f21eff

Please sign in to comment.