In a typical Cypress project, what is the main purpose of the fixtures folder?
Think about where you keep sample data that tests can load.
The fixtures folder is used to store static data files such as JSON or CSV. These files provide test data that tests can load and use to simulate real inputs.
What is the primary role of the support folder in a Cypress project?
Think about where you put code that helps tests but is not a test itself.
The support folder contains reusable code such as custom commands and global configurations that help tests run smoothly and avoid repetition.
Given the following Cypress folder structure, how many test files will Cypress recognize inside the integration folder?
cypress/
integration/
login.spec.js
signup.spec.js
dashboard/
overview.spec.js
stats.spec.js
fixtures/
support/
Count all .spec.js files including those in subfolders.
Cypress treats all .spec.js files inside the integration folder and its subfolders as test files. Here, there are 4 such files.
Where should you place environment-specific configuration files in a Cypress project to keep them organized and easily accessible?
Think about where config files should live so they are not mixed with test code or test data.
Environment-specific config files are best placed in the root cypress folder alongside fixtures and support to keep them separate from test code and data.
In what order does Cypress load these folders when running tests?
supportfixturesintegration
Consider when test data, support code, and test specs are loaded.
Cypress first loads support files to set up commands and configurations, then loads fixtures for test data, and finally runs the integration test files.