test: fix flaky test PPOM Blockaid Alert for ERC20 Approve by adding missing mocks#22617
Merged
test: fix flaky test PPOM Blockaid Alert for ERC20 Approve by adding missing mocks#22617
Conversation
Contributor
|
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. |
seaona
commented
Jan 22, 2024
| ['eth_gasPrice'], | ||
| ['eth_getBalance'], | ||
| ['eth_getBlockByNumber'], | ||
| ['eth_createAccessList'], |
Member
Author
There was a problem hiding this comment.
adding a couple of more mocks to requests that are also triggered by ppom when performing the approve ERC20 action, to stabilize the test
seaona
commented
Jan 22, 2024
| [ | ||
| 'eth_call', | ||
| { | ||
| methodResultVariant: 'balanceApprove', |
Member
Author
There was a problem hiding this comment.
this mock fixes the "not displaying the ERC20 approve screeen"
jpuri
approved these changes
Jan 22, 2024
blackdevelopa
approved these changes
Jan 22, 2024
Collaborator
Builds ready [8772b80]
Page Load Metrics (1259 ± 146 ms)
Bundle size diffs
|
digiwand
approved these changes
Jan 22, 2024
Collaborator
Builds ready [49043c2]
Page Load Metrics (1609 ± 117 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #22617 +/- ##
========================================
Coverage 68.11% 68.11%
========================================
Files 1086 1086
Lines 42628 42628
Branches 11340 11340
========================================
+ Hits 29033 29035 +2
+ Misses 13595 13593 -2 ☔ View full report in Codecov by Sentry. |
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
There were 2 issues with the test: PPOM Blockaid Alert for ERC20 Approve transactions.
For fixing the test, I've added some missing mocks, this results in:
ci runs
Note: other flaky tests might appear ocasionally, but here we should look for the ppom test and make sure it's green all the time:
Related issues
Fixes: #22577
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist