test: add analytics e2e coverage for predictions#24538
Merged
Conversation
matallui
previously approved these changes
Jan 15, 2026
christopherferreira9
approved these changes
Jan 15, 2026
matallui
approved these changes
Jan 15, 2026
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - skip-smart-e2e-selection label found All E2E tests pre-selected. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
The purpose of this task is to add analytics coverage in our current e2e tests.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Extends Predictions E2E to validate analytics emissions across core flows and aligns mocks with app analytics expectations.
FixtureBuilder.withMetaMetricsOptIn()and validates events:Predict Market Details Opened(entry_point,market_details_viewed),Predict Position Viewed(open_positions_count),Predict Activity Viewed(activity_type), andGeo Blocked Triggered(country,attempted_actionincludingpredict_action,cashout,deposit) usinggetEventsPayloads+SoftAssert{ blocked: true, country: GEO_BLOCKED_COUNTRIES[0].country }for consistency with app logicWritten by Cursor Bugbot for commit 04b2033. This will update automatically on new commits. Configure here.