I have tests which depend on previous tests. For example:
Create tenant test Create Site test
If I do not have created a tenant I could not create a site.
How can I make sure that the site test is executed after the tenant test ?
I have multiple scenarios like this to cover in one test suite for regression.
This thread is trying to answer question "How can I make sure that the site test is executed after the tenant test?"
Yo, Naming convention is the most simple way - just name them 1Create tenant, 2CreateSite. Second is project dependencies, but I don't think this will work for you.
I can advice to make tests not rely on each other. Can't you just throw an API call before "Create Site" and have yourself a brand new tenant?
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email email@example.com.