fix: await expect.poll in docs (#13743)

This commit is contained in:
Dmitry Gozman 2022-04-25 20:22:53 +01:00 committed by GitHub
parent 97750ccf9a
commit 416b56a0c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ You can convert any synchronous `expect` to an asynchronous polling one using `e
The following method will poll given function until it returns HTTP status 200:
```js
expect.poll(async () => {
await expect.poll(async () => {
const response = await page.request.get('https://api.example.com');
return response.status();
}, {