Testing · Junior · Question 64 of 78
What does await expect(page.getByText("Saved")).toBeVisible() do in Playwright?
- ✓Correct answer: Retries the check until the text becomes visible or the timeout expires
- 2Checks once and fails immediately if the text isn't there
- 3Takes a screenshot and compares it to a reference
Explanation
These are web-first assertions: they wait for the condition, so async UI doesn't need manual waits.