We are using
testCafe for automation. when it comes to executing tests in parallel, test cafe even executes
test blocks within the spec file, parallelly.
Our tests are independent, but there are some tests (within the same file) that are interdependent (to save time). For example:
Test1: End to end user journey, to make a purchase Test2: Go to transaction portal, to check the transaction details (to ensure that the transaction was smooth)
So, we have kept the above two tests in the same spec file and want to execute them sequentially. Since, we have a transaction from 1st test, so we want to leverage that in test2; instead of doing it again.