Cypress · Senior · Question 48 of 76

How can Cypress tests verify analytics events without real tracking?

Show the answer

Correct answer: Intercept tracking calls and assert their payloads

Explanation

Stubbing tracking endpoints keeps data clean and checks the right events and properties fire.

Further reading

Problem with a question

Cypress · Senior · question 48

Test yourself

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

Take this quiz