microsoft / microsoft/playwright

[Feature]: UI Mode - Auto run tests

Open
#32,115 8 comments 26 reactions 0 assignees View on GitHub
P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

### 🚀 Feature Request

To be able to run tests automatically (instead of an explicit start) using UI mode

Detailed requirements:
* If set, works with `--ui` flag or `--ui-host`/`--ui-port` flags
* Respects test configuration (i.e. tests run the same as they would with `npx playwright test`)

### Example

`npx playwright test --ui --auto-run`

CLI Documentation:
`--auto-run`: 'When running in UI mode, starts running tests when first started"

### Motivation

I want to be able to run this command and see the progress my tests on a CI

Today, the ui mode will load, but it requires going into the interface and clicking the ▶️ icon
This would remove that extra step and runs the tests

Contributor guide

Open the contributing guide

Research direction

Start with the CLI documentation entry for `--auto-run` and the startup path used by `--ui`, `--ui-host`, and `--ui-port`. Confirm that the option starts tests automatically in UI mode and that execution matches `npx playwright test` while respecting the test configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.