-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test: Refactor Advanced Gas fees test to utilize mocks #11927
Open
SamuelSalas
wants to merge
30
commits into
main
Choose a base branch
from
modify-mockserver-for-android
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+112
−31
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
80168ab
Mock suggestedGasApi to display the EIP1559 edit priority modal
SamuelSalas 07ceac6
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 71497ae
Update snapshot
SamuelSalas a0cafef
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas f2b3544
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas c54dcb8
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 126eab7
Change beforeall
SamuelSalas 851a9fb
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 9edfc24
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 27f4ac4
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 36d298e
Update mockttp default port
SamuelSalas 2606fb6
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 35f765a
Unify mockttp url
SamuelSalas e5d1e62
Expose mock server port
SamuelSalas 6e28a7d
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas ad3d5b1
Add portfinder to check that mockport is available
SamuelSalas bbd8504
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas 96ec958
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas fbc5d32
Add mockPort const
SamuelSalas 2d118bd
Only run confirmations on android
SamuelSalas fe8c361
Merge branch 'main' into e2e/11606-refactor-advanced-gas-fees-test-mocks
SamuelSalas c92bc11
added loggin and small modifications
Andepande 390347f
Update mockServer.js
Andepande f319d82
Merge branch 'main' into modify-mockserver-for-android
Andepande fcb151c
small change
Andepande aff2a1a
Merge branch 'main' into modify-mockserver-for-android
SamuelSalas 55bb507
Make the othr workflows available for bitrise
SamuelSalas f1119f9
Reset AmountView tapCurrencySwitch method
SamuelSalas 62eddd8
Restore bitrise file
SamuelSalas cbde022
Remove space
SamuelSalas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
37 changes: 37 additions & 0 deletions
37
e2e/mockServer/data/suggestedGasApiGanacheResponseBody.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"low": { | ||
"suggestedMaxPriorityFeePerGas": "1", | ||
"suggestedMaxFeePerGas": "1.000503137", | ||
"minWaitTimeEstimate": 15000, | ||
"maxWaitTimeEstimate": 60000 | ||
}, | ||
"medium": { | ||
"suggestedMaxPriorityFeePerGas": "1.5", | ||
"suggestedMaxFeePerGas": "1.500679235", | ||
"minWaitTimeEstimate": 15000, | ||
"maxWaitTimeEstimate": 45000 | ||
}, | ||
"high": { | ||
"suggestedMaxPriorityFeePerGas": "2", | ||
"suggestedMaxFeePerGas": "2.000855333", | ||
"minWaitTimeEstimate": 15000, | ||
"maxWaitTimeEstimate": 30000 | ||
}, | ||
"estimatedBaseFee": "0.000503137", | ||
"networkCongestion": 0.34, | ||
"latestPriorityFeeRange": [ | ||
"1.5", | ||
"2" | ||
], | ||
"historicalPriorityFeeRange": [ | ||
"0.000001", | ||
"236.428872442" | ||
], | ||
"historicalBaseFeeRange": [ | ||
"0.000392779", | ||
"0.00100495" | ||
], | ||
"priorityFeeTrend": "up", | ||
"baseFeeTrend": "up", | ||
"version": "0.0.1" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
I recall we had a specific use case for this. Unfortunately, the test that used this test step was deleted
metamask-mobile/e2e/specs/confirmations/send-eth-flow.spec.js
Line 58 in 3635e72
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.
Done