Cypress · Junior · Question 34 of 75
Why log in through cy.request or cy.session instead of the UI in most tests?
- 1UI login in every test is slow and flaky
- 2Cypress forbids typing passwords into inputs
- 3The UI login page can't be tested by Cypress
Show the answer
Correct answer: UI login in every test is slow and flaky
Explanation
Test the login UI once in its own spec. Other tests start already authenticated.