Cypress · Middle · Question 22 of 77
Why seed test data with cy.task or API calls instead of the UI?
- 1It's faster, more stable and focuses the test on one feature
- 2UI forms can't be used inside Cypress tests at all
- 3Seeding through the UI is forbidden by Cypress
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.