Skip to content

Commit 7019e84

Browse files
committed
fix: add e2e
1 parent 0e32686 commit 7019e84

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

test/e2e/tests/settings/account-token-list.spec.js

+37
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,41 @@ describe('Settings', function () {
116116
},
117117
);
118118
});
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+
});
119156
});

0 commit comments

Comments
 (0)