playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Allow teardowns as dependencies

Open DLeijen opened this issue 1 month ago • 0 comments

🚀 Feature Request

It is currently not allowed to have a project depend on the teardown of another project.

We would like to be able to have this dependency, to ensure correct execution order of projects.

Example

No response

Motivation

For end-to-end testing of our application, we want to accomplish something like this:

Generic setup steps -> Activate configuration set A -> run tests for configuration A in parallel -> Activate configuration set B -> run tests for configuration B in parallel -> Etc.

To make sure the other configuration is not yet applied to the system, we wanted to depend on the teardown of the previous configuration set, but this is currently unsupported.

We would like to be able to run like this, so everything can be handled in a single test cycle.

DLeijen avatar Nov 19 '25 12:11 DLeijen