Playwright
Component Commands
Component testing
4 commands
Commands
UI mode on network
$ npx playwright test --ui-port=0 --ui-host=0.0.0.0
Open UI mode accessible from any network interface.
Run tests by tag
$ npx playwright test --grep @smoke
Run tests matching specific tag.
Exclude tests by tag
$ npx playwright test --grep-invert @slow
Skip tests matching tag pattern.
Repeat each test
$ npx playwright test --repeat-each=3
Run each test multiple times.