test: mocked e2e automated tests for monad and megaeth#16909
Merged
Conversation
…metamask-mobile into test-e2e-monad-megaeth
sgextcsi
approved these changes
Aug 6, 2025
|
Contributor
|
Comment on lines
+12
to
+14
| export const testSpecificMock = { | ||
| GET: [mockEvents.GET.suggestedGasFeesApiGanache], | ||
| }; |
Contributor
There was a problem hiding this comment.
Do we need to export it again? It looks like it is strictly being used in 2 tests, could we use the one under mock-events directly?
Contributor
Author
There was a problem hiding this comment.
It's been used in NETWORK_TEST_CONFIGS and testConfigurations
| testSpecificMock: networkConfig.testSpecificMock, | ||
| }, | ||
| // Remove any once withFixtures is typed | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any |
Contributor
There was a problem hiding this comment.
We shouldn't need this any
|
|
||
| // Transfer NFT | ||
| await TestDApp.tapNFTTransferButton(); | ||
| await TestHelpers.delay(3000); |
Contributor
There was a problem hiding this comment.
Hardcoded delays should be avoided.
christopherferreira9
approved these changes
Aug 6, 2025
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
Adding e2e tests for new networks (Monad and MegaETH), which uses mocks to help minimise bugs found during the release cycle.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist