Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Dmitry Gozman416b56a0c87f
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();
}, {