Testing · Junior · Question 64 of 78

What does await expect(page.getByText("Saved")).toBeVisible() do in Playwright?

Explanation

These are web-first assertions: they wait for the condition, so async UI doesn't need manual waits.

Further reading

Problem with a question

Testing · Junior · question 64

Test yourself

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

Take this quiz