Skip to content

Commit

Permalink
add '=>' expected (#3182)
Browse files Browse the repository at this point in the history
  • Loading branch information
maojunxyz committed Jan 8, 2022
1 parent 0e7665b commit c56e96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ Second argument is async function that gets this helper as parameter.
{ [`page`][23], [`context`][24] [`browser`][25] } objects from Playwright API are available.

```js
I.usePlaywrightTo('emulate offline mode', async ({ context }) {
I.usePlaywrightTo('emulate offline mode', async ({ context }) => {
await context.setOffline(true);
});
```
Expand Down

0 comments on commit c56e96d

Please sign in to comment.