Testing · Middle · Question 53 of 75
What does expect.poll do in Playwright?
await expect.poll(async () => (await api.getOrder(id)).status).toBe("paid");- ✓Correct answer: Retries any async function until the value matches - e.g. waiting for a backend state
- 2Polls the DOM every frame
- 3Sends requests in parallel
Explanation
Web-first assertions cover locators; expect.poll covers non-UI values.