diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index d2a1472da..43700a256 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -995,7 +995,7 @@ describe('MetaMask', function () { await driver.clickElement(By.css('.wallet-balance')) - await driver.clickElement(By.css('.token-list-item')) + await driver.clickElement(By.css('.token-cell')) await driver.delay(1000) const tokenBalanceAmount = await driver.findElements(By.css('.transaction-view-balance__primary-balance')) @@ -1223,7 +1223,7 @@ describe('MetaMask', function () { describe('Hide token', function () { it('hides the token when clicked', async function () { - await driver.clickElement(By.css('.token-list-item__ellipsis')) + await driver.clickElement(By.css('.token-cell__ellipsis')) const byTokenMenuDropdownOption = By.css('.menu__item--clickable') await driver.clickElement(byTokenMenuDropdownOption) diff --git a/ui/app/components/app/index.scss b/ui/app/components/app/index.scss index 82ed1314b..7e4713a32 100644 --- a/ui/app/components/app/index.scss +++ b/ui/app/components/app/index.scss @@ -48,6 +48,8 @@ @import '../ui/token-balance/index'; +@import 'token-cell/token-cell'; + @import 'transaction-activity-log/index'; @import 'transaction-breakdown/index'; diff --git a/ui/app/components/app/tests/token-cell.spec.js b/ui/app/components/app/tests/token-cell.spec.js index 73ac6bb29..858ae987a 100644 --- a/ui/app/components/app/tests/token-cell.spec.js +++ b/ui/app/components/app/tests/token-cell.spec.js @@ -55,15 +55,15 @@ describe('Token Cell', function () { }) it('renders token balance', function () { - assert.equal(wrapper.find('.token-list-item__token-balance').text(), '5.000') + assert.equal(wrapper.find('.token-cell__token-balance').text(), '5.000') }) it('renders token symbol', function () { - assert.equal(wrapper.find('.token-list-item__token-symbol').text(), 'TEST') + assert.equal(wrapper.find('.token-cell__token-symbol').text(), 'TEST') }) it('renders converted fiat amount', function () { - assert.equal(wrapper.find('.token-list-item__fiat-amount').text(), '0.52 USD') + assert.equal(wrapper.find('.token-cell__fiat-amount').text(), '0.52 USD') }) }) diff --git a/ui/app/components/app/token-cell/token-cell.component.js b/ui/app/components/app/token-cell/token-cell.component.js index 35a8367f4..c4a537d9f 100644 --- a/ui/app/components/app/token-cell/token-cell.component.js +++ b/ui/app/components/app/token-cell/token-cell.component.js @@ -64,29 +64,29 @@ export default class TokenCell extends Component { return (