Cypress · Junior · Question 34 of 75

Why log in through cy.request or cy.session instead of the UI in most tests?

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.

Further reading

Problem with a question

Cypress · Junior · question 34

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz