Skip to content

Commit

Permalink
Update e.g. to for example
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jun 5, 2024
1 parent d899df1 commit c3396c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ await text.type('hello world');

## Working with k6 check

The k6 `check` API will not `await` promises, so calling a function that returns a `Promise`, e.g. `locator.textContent()`, inside one of the predicates will not work. Instead you will have to `await` and store the result in a variable _outside_ the `check`:
The k6 `check` API will not `await` promises, so calling a function that returns a `Promise`, for example `locator.textContent()`, inside one of the predicates will not work. Instead you will have to `await` and store the result in a variable _outside_ the `check`:

For example, before:

Expand Down

0 comments on commit c3396c3

Please sign in to comment.