mardi 30 juin 2020

How to get a wrong password warning with Cypress before it disappears?

Heres my workflow -> type invalid user -> type invalid password -> Click Login -> "Wrong Credentials" box should appear and disappear after some time. The issue is that i cant cy.get() the box before it disappears, i've tried using cy.clock() and cy.tick() but i didnt understood how it properly worked, so how do i get it?

Aucun commentaire:

Enregistrer un commentaire