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

chore: add analytics test [INS-3919] #7478

Merged
merged 7 commits into from
Jun 5, 2024

Conversation

filfreire
Copy link
Member

@filfreire filfreire commented Jun 3, 2024

Some thoughts:

  • final approach - capture segment network events, and check for userId and anonymousId in test

  • We could try to find a hack to force the "fetcher" used by the segment lib to use insomniafetch, and on playwright we would capture the segment events and look into them - for now didn't explore this - not sure if it's worth exploring

  • (initial approach followed) added a "debug" console log when insomnia is running via playwright, which we can capture on a test and check if certain bits of data are properly sent on logged in or logged out - it's not a beautiful option, but could do the job

Closes INS-3919

@filfreire filfreire requested a review from a team June 3, 2024 15:04
@Kong Kong deleted a comment from sentry-io bot Jun 3, 2024
@filfreire filfreire changed the title chore: addd analytics test [INS-3919] chore: add analytics test [INS-3919] Jun 3, 2024
@filfreire filfreire force-pushed the feature/ins-3919-analytics-test branch from 40c776b to 2c5a420 Compare June 5, 2024 12:27
@filfreire filfreire marked this pull request as ready for review June 5, 2024 13:50
@gatzjames gatzjames force-pushed the feature/ins-3919-analytics-test branch from 37a3e8f to 971eef4 Compare June 5, 2024 13:56
@filfreire filfreire force-pushed the feature/ins-3919-analytics-test branch from 53931a9 to c59c417 Compare June 5, 2024 14:28
@filfreire filfreire enabled auto-merge (squash) June 5, 2024 14:28
@filfreire filfreire force-pushed the feature/ins-3919-analytics-test branch from c59c417 to c6779bc Compare June 5, 2024 14:52
@filfreire filfreire merged commit b2aef28 into Kong:develop Jun 5, 2024
7 checks passed
@filfreire filfreire deleted the feature/ins-3919-analytics-test branch June 5, 2024 15:04
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.

None yet

2 participants