Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: block google analytics when running tests #951

Merged
merged 11 commits into from
Nov 27, 2024

Conversation

LeoBonjo
Copy link
Collaborator

Inserted page.route statements into beforeEach functions in playwright test files to abort requests made to google analytics during testing. Confirmed with console logs that all request made to google analytics and google tag manager fail during testing.

@LeoBonjo LeoBonjo requested a review from NoamGaash as a code owner November 26, 2024 16:52
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing, thank you!
it's also visible on the stack traces - we should fix the links I guess.
Thank you!

@LeoBonjo LeoBonjo merged commit 964908d into main Nov 27, 2024
16 of 17 checks passed
@LeoBonjo LeoBonjo deleted the block-google-analytics-in-testing branch November 27, 2024 15:56
@NoamGaash NoamGaash linked an issue Dec 2, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test | block google analytics when running tests
2 participants