Cypress · Junior · Question 6 of 75
What is a spec file in Cypress?
- 1A screenshot file saved after a failure
- 2A test file, e.g.
login.cy.ts, containing tests - 3A file that describes the API specification
Show the answer
Correct answer: A test file, e.g. login.cy.ts, containing tests
Explanation
By default end-to-end specs live in cypress/e2e and match *.cy.{js,ts}. Each spec runs in a fresh browser context.