what is the best practice to pass data between several related tests? For example, I want to create a new user account (email/password) with one test and then use the newly created account's email and password in another test to approve that account, and afterwards I want to invoke another test to login with the newly approved user account.
I don't want to create a single big test for all 3 tasks (registration/approval/login), instead I want to have 3 separate tests each working with the same account during one run. With a new test run another account should be created, approved and logged in and so on. Therefore I must be able to pass email and password of the newly created account into 2 remaining tests (approval and login).
How to properly implement the above scenario with TestCafe?
Thank you in advance,