From 27b29a4a8fc8ad1f71146f3803f2db2f504982a9 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Wed, 28 Mar 2018 15:25:12 -0700 Subject: [PATCH] Rename PageBalances spec --- test/e2e/wallet.js | 8 ++++---- .../wallet/{PageBalances.spec.js => PageWallet.spec.js} | 8 ++++---- ...{PageBalances.spec.js.snap => PageWallet.spec.js.snap} | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) rename test/unit/specs/components/wallet/{PageBalances.spec.js => PageWallet.spec.js} (87%) rename test/unit/specs/components/wallet/__snapshots__/{PageBalances.spec.js.snap => PageWallet.spec.js.snap} (98%) diff --git a/test/e2e/wallet.js b/test/e2e/wallet.js index 2398928888..c8385dba0e 100644 --- a/test/e2e/wallet.js +++ b/test/e2e/wallet.js @@ -41,11 +41,11 @@ test('wallet', async function (t) { t.test('send', async function (t) { async function goToSendPage() { - await navigate(client, 'Balances') + await navigate(client, 'Wallet') await $('.ni-li-dt=FERMION').$('..').$('..').click() } - await navigate(client, 'Balances') + await navigate(client, 'Wallet') let sendBtn = () => $('.ni-form-footer button') let addressInput = () => $('#send-address') @@ -110,7 +110,7 @@ test('wallet', async function (t) { }) t.test('own balance updated', async function (t) { - await navigate(client, 'Balances') + await navigate(client, 'Wallet') // TODO should not be necessary await sleep(1000) @@ -129,7 +129,7 @@ test('wallet', async function (t) { t.test('fermion balance after receiving', async function (t) { await logout(client) await login(client, 'testreceiver') - await navigate(client, 'Balances') + await navigate(client, 'Wallet') let fermionEl = () => balanceEl('fermion') await client.waitForExist(`//div[contains(text(), "FERMION")]`, 5000) diff --git a/test/unit/specs/components/wallet/PageBalances.spec.js b/test/unit/specs/components/wallet/PageWallet.spec.js similarity index 87% rename from test/unit/specs/components/wallet/PageBalances.spec.js rename to test/unit/specs/components/wallet/PageWallet.spec.js index 5b4b48b0d1..0100e316b4 100644 --- a/test/unit/specs/components/wallet/PageBalances.spec.js +++ b/test/unit/specs/components/wallet/PageWallet.spec.js @@ -1,12 +1,12 @@ import setup from '../../../helpers/vuex-setup' -import PageBalances from 'renderer/components/wallet/PageBalances' +import PageWallet from 'renderer/components/wallet/PageWallet' -describe('PageBalances', () => { +describe('PageWallet', () => { let wrapper, store let { mount } = setup() beforeEach(() => { - let instance = mount(PageBalances, { stubs: { 'modal-search': '' } }) + let instance = mount(PageWallet, { stubs: { 'modal-search': '' } }) wrapper = instance.wrapper store = instance.store @@ -54,7 +54,7 @@ describe('PageBalances', () => { }) it('should show the n/a message if there are no denoms', () => { - let { store, wrapper } = mount(PageBalances, { 'data-empty': '' }) + let { store, wrapper } = mount(PageWallet, { 'data-empty': '' }) store.commit('setWalletBalances', []) wrapper.update() expect(wrapper.find('data-empty')).toBeDefined() diff --git a/test/unit/specs/components/wallet/__snapshots__/PageBalances.spec.js.snap b/test/unit/specs/components/wallet/__snapshots__/PageWallet.spec.js.snap similarity index 98% rename from test/unit/specs/components/wallet/__snapshots__/PageBalances.spec.js.snap rename to test/unit/specs/components/wallet/__snapshots__/PageWallet.spec.js.snap index ac41280de7..83bc9a8fd4 100644 --- a/test/unit/specs/components/wallet/__snapshots__/PageBalances.spec.js.snap +++ b/test/unit/specs/components/wallet/__snapshots__/PageWallet.spec.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`PageBalances has the expected html structure 1`] = ` +exports[`PageWallet has the expected html structure 1`] = `
@@ -17,7 +17,7 @@ exports[`PageBalances has the expected html structure 1`] = ` class="ni-page-header-title" >

- Balances + Wallet

`; -exports[`PageBalances should filter the balances 1`] = ` +exports[`PageWallet should filter the balances 1`] = `
@@ -360,7 +360,7 @@ exports[`PageBalances should filter the balances 1`] = ` class="ni-page-header-title" >

- Balances + Wallet