Cypress · Middle · Question 22 of 77

Why seed test data with cy.task or API calls instead of the UI?

Show the answer

Correct answer: It's faster, more stable and focuses the test on one feature

Explanation

If creating an order through five screens is not what the test checks, set it up directly and test only the behaviour that matters.

Further reading

Problem with a question

Cypress · Middle · question 22

Test yourself

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

Take this quiz