How can I check Google Events fired before the new page loads #9250
Unanswered
melibe23
asked this question in
Questions and Help
Replies: 1 comment 2 replies
-
Perhaps this helps you: https://stackoverflow.com/questions/55582982/how-to-listen-global-events-with-cypress/55583108 Better would be to stub the request to GA, see this recipe. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the scenario:
This is my code:
And a second attempt:
The thing is that Cypress is making the assertion on the New page, and the events I want to check are no longer there.
How can I test this? Honestly, I tried everything.
Beta Was this translation helpful? Give feedback.
All reactions