From 416b56a0c87f0fd85cc897d1ab1416db44c961ac Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 25 Apr 2022 20:22:53 +0100 Subject: [PATCH] fix: await expect.poll in docs (#13743) --- docs/src/test-assertions-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.md index fb1c0fe774..40ea37ca90 100644 --- a/docs/src/test-assertions-js.md +++ b/docs/src/test-assertions-js.md @@ -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(); }, {