chore: Make Asset sort e2e test more robust cp-7.53.0#18046
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. |
|
christopherferreira9
left a comment
There was a problem hiding this comment.
lgtm will investigate separately how we can properly assert without relaunching the app.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18046 +/- ##
==========================================
+ Coverage 74.38% 74.54% +0.15%
==========================================
Files 2985 3019 +34
Lines 67286 67943 +657
Branches 11289 11449 +160
==========================================
+ Hits 50051 50645 +594
- Misses 14006 14013 +7
- Partials 3229 3285 +56 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
|
|
There was a problem hiding this comment.
Bug: Token Sorting Tests Missing Restart Logic
The should sort tokens by fiat amount test is missing the app restart logic and .withMetaMetricsOptIn() fixture configuration that were applied to the should sort tokens alphabetically test. This restart is a workaround for FlashList v2's UI not re-rendering after sort changes. Both tests are affected by this FlashList v2 issue, leading to potential failures or unreliable results for the unfixed test.
e2e/specs/assets/multichain/asset-sort.spec.ts#L93-L125
e2e/specs/assets/multichain/asset-sort.spec.ts#L57-L87
metamask-mobile/e2e/specs/assets/multichain/asset-sort.spec.ts
Lines 57 to 87 in 1f93798



Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist