Testing · Middle · Question 53 of 75

What does expect.poll do in Playwright?

await expect.poll(async () => (await api.getOrder(id)).status).toBe("paid");

Explanation

Web-first assertions cover locators; expect.poll covers non-UI values.

Further reading

Problem with a question

Testing · Middle · question 53

Test yourself

Take the Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz