Skip to content

Glossary: Testing Web Apps

Web-first assertion

Also written: web-first assertions

A Playwright check such as `await expect(locator).toHaveText(...)` that retries until it passes or times out (5 seconds by default). Always await it.

Where the book teaches it

Related terms

Auto-waitingLocator