test: Enable Segment/MetaMetrics for E2E tests#14641
Conversation
…ror handling in MetaMetricsTestUtils
…SegmentHelper utility
…ssertEventExists method
…t tracking management
…r wallet import analytics
…g for event tracking
…ction and return mockServer to test suite
…etrics event payloads
…r references in import wallet analytics tests
… parameter and improve filtering logic
… analytics tracking
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
christopherferreira9
left a comment
There was a problem hiding this comment.
LGTM, great work!
cortisiko
left a comment
There was a problem hiding this comment.
Left a few comments. We should have some tests for new wallet creation as well.
… into e2e/metametrics
|
|



Description
Fix MetaMetrics event visibility in E2E test suite by implementing a test MetaMetrics client that routes events to a mock server. This resolves an issue that previously caused the application to hang in E2E testing mode when MetaMetrics tracking was enabled.
The solution routes MetaMetrics events to a non-existent server where they are captured by the mock server, allowing proper testing of analytics events without performance degradation.
Added example implementations demonstrating how to use metrics mocks alongside other mocks, both when using
withFixturesand when starting a server within a test.Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist