👩💻 Join our community of thousands of amazing developers!
Cypress Best Practices strongly advocates for keeping the tests independent of each other.I strongly agree with this advice. We should be able to run each test by itself and run the tests in any order. But sometimes it is simpler to have one test reuse state left by the previous test. In this blog post, I will show I solve this problem in somewhat ok way by using my plugins.The dependent testsLet's start with a spec file with two tests.cypress/e2e/spec1.cy.js123456789101112131415161718let projec...