feat: adds a new fixture to disable STX#17461
Conversation
|
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. |
|
|
|
|
There was a problem hiding this comment.
Bug: API Contract Violation: Return Type Change
The generateApprovedTokenActivityLabel method's return type changed from a RegExp object to a string. This breaks the API contract, as callers may expect a RegExp for pattern matching, leading to runtime errors.
e2e/pages/Transactions/ActivitiesView.ts#L63-L68
metamask-mobile/e2e/pages/Transactions/ActivitiesView.ts
Lines 63 to 68 in 396a5bc
Bug: Mock Server Cleanup Affects External Instances
The withFixtures function prematurely stops externally provided mock server instances (mockServerInstance). This occurs because the cleanup logic's condition changed from if (testSpecificMock) to if (mockServer), causing stopMockServer to be called on all mock server instances, regardless of whether they were created internally or passed in externally. This interferes with externally managed mock servers, potentially breaking tests that intend to reuse them.
e2e/framework/fixtures/FixtureHelper.ts#L460-L463
metamask-mobile/e2e/framework/fixtures/FixtureHelper.ts
Lines 460 to 463 in 396a5bc
Was this report helpful? Give feedback by reacting with 👍 or 👎
|
|
Added No E2E Needed as the tests had passed before and all commits after that were just cleaning logs and fixing prettier + linting. |



Description
Extra
Improvements on
withFixturesunder framework:endTestfnto be executed after the test finishes and before the cleanup happens. Specially useful when we need to grab MetaMetrics events.Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist