-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 'grep' CLI option ignored when using 'ui' CLI option #31617
Labels
Comments
Skn0tt
added a commit
that referenced
this issue
Jul 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.45.1
Steps to reproduce
npm init playwright@latest
npx playwright test --grep 'has title' --ui
Expected behavior
When using both
grep
andui
CLI options, the UI mode should only display tests that match the specifiedgrep
pattern.Actual behavior
When using both
grep
andui
CLI options, the UI mode displays all tests, not just those matching the specifiedgrep
pattern. It seems that thegrep
CLI option is ignored entirely when theui
CLI option is also used.Additional context
These two CLI options worked well together in version 1.42.1. They stopped working together via CLI from 1.43 onward.
These two options do work together if you specify
grep
as an option in the Playwright config file, rather than specifying it command line, and then use theui
CLI option alone. This will open the UI mode filtered to only tests that match thegrep
option specified in the config.Environment
The text was updated successfully, but these errors were encountered: