-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(multichain): fix showFiat option for test assets #26224
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. |
Builds ready [3631381]
Page Load Metrics (199 ± 202 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…fix tests balances and snapshots
…al + fix snapshots
…al and account-list-item tests
…ccount state + snapshot
edfb49b
to
ef336a0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26224 +/- ##
===========================================
+ Coverage 69.96% 69.96% +0.01%
===========================================
Files 1410 1411 +1
Lines 49915 49990 +75
Branches 13802 13806 +4
===========================================
+ Hits 34919 34975 +56
- Misses 14996 15015 +19 ☔ View full report in Codecov by Sentry. |
Builds ready [bdbdc12]
Page Load Metrics (173 ± 173 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [05dacfc]
Page Load Metrics (205 ± 200 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -354,17 +354,17 @@ exports[`Connect More Accounts Modal should render correctly 1`] = ` | |||
<div | |||
class="mm-box currency-display-component mm-box--display-flex mm-box--flex-wrap-wrap mm-box--align-items-center" | |||
data-testid="first-currency-display" | |||
title="$0.00 USD" | |||
title="0 ETH" |
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 assume this snapshot was wrong for quite some time now.
The providerConfig
on mock-state.json
here is 0x5
(goerli), which is a testnet.
Test assets/accounts should not show any fiat values unless showFiatInTestnets
is set to true
(but it's currently false
here)
You will see a bunch of snapshots changes in this PR, because of this ⬆️.
@@ -293,17 +293,17 @@ exports[`Connections Content should render correctly 1`] = ` | |||
<div | |||
class="mm-box currency-display-component mm-box--display-flex mm-box--flex-wrap-wrap mm-box--align-items-center" | |||
data-testid="first-currency-display" | |||
title="$880.18 USD" |
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 did not track why the fiat balance was actually this low in the original snapshot.
However, based on this account's balance, the actual balance should be:
0x346ba7725f412cbfdb # Hex (WEI)
# Convert to decimal
966987986469506500000 # Decimal (WEI)
# Convert to ETH
966.9879864695065 # Decimal (ETH)
So here again, I guess the snapshot was wrong too. Also, the same comment applies here, so no more fiat.
Co-authored-by: Daniel Rocha <daniel.rocha@consensys.net>
Quality Gate passedIssues Measures |
Builds ready [24e70a6]
Page Load Metrics (62 ± 6 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Since the introduction of the new Bitcoin accounts in the account-list-menu, we introduced a regression regarding the "Show conversion in testnets" flag (for both Bitcoin and Ethereum accounts).
This PR fixes that.
Related issues
Fixes:
Manual testing steps
yarn start:flask
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist