npx playwright test -g 'login'

Category: Web App Development

npx playwright test -g 'login'

Run only tests matching a name pattern

Filters the suite to tests whose titles contain login, using the -g grep flag. The pattern is a regular expression, so 'checkout|payment' matches either term. Speeds up iteration when only one flow changed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.