Bird
0
0

Which of the following is the correct way to start a Cypress test block?

easy📝 Syntax Q12 of 15
Cypress - Basics and Setup
Which of the following is the correct way to start a Cypress test block?
Atest('My test', () => { ... })
Bdescribe('My test', () => { ... })
Cit('My test', () => { ... })
Drun('My test', () => { ... })
Step-by-Step Solution
Solution:
  1. Step 1: Recall Cypress test syntax

    Cypress uses it() to define individual test cases inside describe() blocks.
  2. Step 2: Identify correct test block starter

    it() is the function to start a test case. describe() groups tests, but does not start a test itself.
  3. Final Answer:

    it('My test', () => { ... }) -> Option C
  4. Quick Check:

    Test case starts with it() = A [OK]
Quick Trick: Tests start with it(), groups with describe() [OK]
Common Mistakes:
  • Using test() which is not Cypress syntax
  • Confusing describe() as test starter
  • Using run() which does not exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes