Cypress · Middle · Question 75 of 77

What does Cypress.env() read in the browser?

Show the answer

Correct answer: Values from config, cypress.env.json or CYPRESS_ vars

Explanation

Only explicitly exposed values reach the browser. Avoid putting secrets there if specs run with screenshots or videos shared widely.

Further reading

Problem with a question

Cypress · Middle · question 75

Test yourself

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

Take this quiz