Cypress · Junior · Question 52 of 75

Where are custom commands usually registered?

Show the answer

Correct answer: In cypress/support/commands.ts

Explanation

The support file runs before every spec, so commands defined there are available everywhere.

Further reading

Problem with a question

Cypress · Junior · question 52

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz