-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Feature]: Queue tests for after compilation #40070
Description
🚀 Feature Request
In the playwright UI, I want to queue tests to run after compilation. The core problem is that triggering tests is disabled when compiling.
Use cases:
- Web server is still compiling: I want to already trigger (all) tests, so that I don’t need to keep the UI open waiting for compilation. Currently, when the UI is opened for the first time, the tests are not even shown until the web server is ready.
Queuing multiple tests: if I want to execute two tests, it should be possible to trigger the second one before the first is complete. Currently, this is possible, but only when the tests are in a common group, by triggering the group instead.(duplicate of [Feature] Option to queue more tests in UI mode #27561)
Edge case:
If a test is running/queued and its group is triggered, the test that is already running/queued is not re-queued.
Example
The play button in the UI would not be disabled when running. Optionally, it would show a badge/different icon to indicate that they will be queued. Clicking on it would show the same clock symbol shown in subsequent tests when triggering a batch of tests, and then these tests would execute as soon as they are ready.
The “play all” button in the UI would not be disabled when compiling. Optionally, it would show a badge/different icon to indicate that the tests will be queued. Clicking on it would show the same clock symbol as shown in subsequent tests when triggering a batch of tests, and then these tests would execute as soon as they are ready.
Motivation
This would allow for the UI to be used more efficiently, triggering tests immediately rather than needing to wait for compilation.