Bird
0
0

If you want to add a plugin to modify Cypress behavior, where should you place the plugin file by default?

medium📝 Predict Output Q5 of 15
Cypress - Basics and Setup
If you want to add a plugin to modify Cypress behavior, where should you place the plugin file by default?
Acypress/support/index.js
Bcypress/fixtures/plugin.json
Ccypress/integration/plugin.js
Dcypress/plugins/index.js
Step-by-Step Solution
Solution:
  1. Step 1: Recall plugin folder purpose

    The plugins folder holds files that extend or modify Cypress behavior.
  2. Step 2: Identify default plugin file

    The default plugin file is cypress/plugins/index.js.
  3. Final Answer:

    cypress/plugins/index.js -> Option D
  4. Quick Check:

    Plugins go in cypress/plugins/index.js [OK]
Quick Trick: Plugins live in cypress/plugins/index.js [OK]
Common Mistakes:
  • Placing plugins in support or fixtures
  • Putting plugin code in integration
  • Using wrong file names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes