Cypress.io How to handle async code
Your problem stems from the fact that cypress commands are not promises, although behaving like promises. I can think of two options: Try to refactor your test code to not use async/await, as these commands don’t behave as expected when running your code on cypress (check this bug). Cypress already has a whole way of … Read more