Cypress.io How to handle async code
问题 I'm in the middle of process of moving our old capybara tests to cypress.io as our application is going SPA way. In our case we have over 2000 tests covering a lot of features. So common pattern to test feature is to have an user with created and published offer. On the beginning I wrote case where cypress were going trough page and clicking everything. It worked but I saw that offer create + publish took almost 1,5 minute to finish. And sometimes we need multiple offers. So we have a test