@@ -116,4 +116,41 @@ describe('Settings', function () {
116
116
} ,
117
117
) ;
118
118
} ) ;
119
+
120
+ it ( 'Should show crypto value when price checker setting is off' , async function ( ) {
121
+ await withFixtures (
122
+ {
123
+ fixtures : new FixtureBuilder ( )
124
+ . withConversionRateEnabled ( )
125
+ . withShowFiatTestnetEnabled ( )
126
+ . withPreferencesControllerShowNativeTokenAsMainBalanceDisabled ( )
127
+ . withConversionRateDisabled ( )
128
+ . build ( ) ,
129
+ ganacheOptions : defaultGanacheOptions ,
130
+ title : this . test . fullTitle ( ) ,
131
+ testSpecificMock : mockInfuraResponses ,
132
+ } ,
133
+ async ( { driver } ) => {
134
+ await unlockWallet ( driver ) ;
135
+
136
+ await driver . clickElement ( '[data-testid="popover-close"]' ) ;
137
+ await driver . clickElement (
138
+ '[data-testid="account-overview__asset-tab"]' ,
139
+ ) ;
140
+
141
+ const tokenListAmount = await driver . findElement (
142
+ '.eth-overview__primary-container' ,
143
+ ) ;
144
+ await driver . delay ( 1000 ) ;
145
+ assert . equal ( await tokenListAmount . getText ( ) , '25\nETH' ) ;
146
+
147
+ await driver . clickElement ( '[data-testid="account-menu-icon"]' ) ;
148
+ const accountTokenValue = await driver . waitForSelector (
149
+ '.multichain-account-list-item .multichain-account-list-item__asset' ,
150
+ ) ;
151
+
152
+ assert . equal ( await accountTokenValue . getText ( ) , '25ETH' ) ;
153
+ } ,
154
+ ) ;
155
+ } ) ;
119
156
} ) ;
0 commit comments