Route Interceptor
Abort, mock, modify or delay the requests of a page for the duration of a single action instead of the whole test.
Abort, mock, modify or delay the requests of a page for the duration of a single action instead of the whole test.
Use Playwright's request context as a fetch implementation to send requests of an API client through Playwright.
Collect the console messages of a page, filtered by level or a custom predicate, for a single action or a whole test.
Mask non-deterministic values like IDs, timestamps or base URLs in a consistent format to keep file snapshots stable.
Detect a CI environment and resolve paths from the package root to keep the Playwright configuration portable.
Types for writing reusable test helpers, like a target accepting both a page and a locator.