-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: adds a new fixture to disable STX #17461
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
generateApprovedTokenActivityLabel(sourceToken: string): string { | |
let title = ActivitiesViewSelectorsText.APPROVE; | |
title = title.replace('{{sourceToken}}', sourceToken); | |
title = title.replace('{{upTo}}', '.*'); | |
return `^${title}`; |
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
if (mockServer) { | |
await stopMockServer(mockServer); | |
} |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Extra
Improvements on
withFixtures
under framework:endTestfn
to 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