Bird
0
0

You want to organize your tests by feature inside the integration folder. Which folder structure is best practice for this?

hard📝 Application Q8 of 15
Cypress - Basics and Setup
You want to organize your tests by feature inside the integration folder. Which folder structure is best practice for this?
Acypress/support/login/login_spec.js and cypress/support/dashboard/dashboard_spec.js
Bcypress/integration/login_spec.js and cypress/integration/dashboard_spec.js only
Ccypress/integration/login/login_spec.js and cypress/integration/dashboard/dashboard_spec.js
Dcypress/fixtures/login/login_spec.js and cypress/fixtures/dashboard/dashboard_spec.js
Step-by-Step Solution
Solution:
  1. Step 1: Understand test organization

    Organizing tests by feature inside subfolders of integration helps keep tests clear and manageable.
  2. Step 2: Identify correct folder placement

    Tests must be inside integration, so placing feature folders there is best practice.
  3. Final Answer:

    cypress/integration/login/login_spec.js and cypress/integration/dashboard/dashboard_spec.js -> Option C
  4. Quick Check:

    Organize tests in integration subfolders [OK]
Quick Trick: Use subfolders in integration for features [OK]
Common Mistakes:
  • Putting tests in support or fixtures
  • Not using subfolders for features
  • Mixing test and support files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes