I'm new to testing and to cypress.io in particular, and I'm trying to test the registering flow in my app.
I want to check two scenarios -
- If the user is trying to register with an existsting username, an error message is popping up.
- Else - If proper inputs are inserted, the username is successfully registering.
How can I do so in one test ? there is an option to use if statement with cypress ?
Thanks a lot in advance.
Aucun commentaire:
Enregistrer un commentaire