I'm using stub = cy.stub() in order to get the text from the alert. However the 1st test (happy path) works but when I run the 2nd test (wrong password) I expected validation failed as text but it's showing the privous message "validation succeeded". How can I do to run both test cases and they both work as expected?
Cypress version 12