Bird
0
0

You placed your test files inside cypress/support instead of cypress/e2e. What issue will you face?

medium📝 Debug Q14 of 15
Cypress - Basics and Setup
You placed your test files inside cypress/support instead of cypress/e2e. What issue will you face?
ATests will not run because Cypress does not look for tests in <code>support</code>
BTests will run normally without any issue
CTests will run but fixtures won't load
DSupport commands will override test files
Step-by-Step Solution
Solution:
  1. Step 1: Understand folder roles

    The support folder is for helper code, not test files.
  2. Step 2: Consequence of wrong placement

    Cypress only runs tests inside e2e folder by default, so tests in support won't run.
  3. Final Answer:

    Tests will not run because Cypress does not look for tests in support -> Option A
  4. Quick Check:

    Tests must be in e2e, not support [OK]
Quick Trick: Tests outside e2e folder won't run [OK]
Common Mistakes:
  • Assuming tests run anywhere inside cypress folder
  • Confusing support folder as test location
  • Thinking fixtures affect test execution location

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes