playwright
playwright copied to clipboard
[Feature]: Start headed from UI
🚀 Feature Request
I think a button to run a test in a headed browser from the playwright ui would be a great improvement.
Example
- In the config file a project can be marked as default.
- In the playwright ui a new button can be clicked to run:
playwright test --project='<default from config>'-g '<name>'(name is replaced with the actual test name) - (Optional) The test can be debugged and if it passes in the headed browser the test can be marked as passed in the ui.
It could be placed here:
Motivation
Ever since the ui mode has been released my workflow has looked like this:
- Use UI to run all test locally. (Terminal 1)
- Check failing tests and fix obvious problems.
- Go to file for failed test.
- Copy name from file.
- Run
playwright test --project=chromium -g '<name>'(Terminal 2) - Debug the test.
- Repeat 3-7 for each failed test.
I feel like having the option to just do steps 3-5 right from the failed test in the ui could be a major help.