playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Start headed from UI

Open PhilGarb opened this issue 1 year ago • 0 comments

🚀 Feature Request

I think a button to run a test in a headed browser from the playwright ui would be a great improvement.

Example

  1. In the config file a project can be marked as default.
  2. 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)
  3. (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: image

Motivation

Ever since the ui mode has been released my workflow has looked like this:

  1. Use UI to run all test locally. (Terminal 1)
  2. Check failing tests and fix obvious problems.
  3. Go to file for failed test.
  4. Copy name from file.
  5. Run playwright test --project=chromium -g '<name>' (Terminal 2)
  6. Debug the test.
  7. 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.

PhilGarb avatar Jun 19 '24 06:06 PhilGarb