Skip to content

Commit

Permalink
Rename PageBalances spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Mar 28, 2018
1 parent 3184796 commit 27b29a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions test/e2e/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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': '<modal-search />' } })
let instance = mount(PageWallet, { stubs: { 'modal-search': '<modal-search />' } })
wrapper = instance.wrapper
store = instance.store

Expand Down Expand Up @@ -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': '<data-empty />' })
let { store, wrapper } = mount(PageWallet, { 'data-empty': '<data-empty />' })
store.commit('setWalletBalances', [])
wrapper.update()
expect(wrapper.find('data-empty')).toBeDefined()
Expand Down
Original file line number Diff line number Diff line change
@@ -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`] = `
<div
class="ni-page"
>
Expand All @@ -17,7 +17,7 @@ exports[`PageBalances has the expected html structure 1`] = `
class="ni-page-header-title"
>
<h2>
Balances
Wallet
</h2>
</div>
<div
Expand Down Expand Up @@ -343,7 +343,7 @@ exports[`PageBalances has the expected html structure 1`] = `
</div>
`;

exports[`PageBalances should filter the balances 1`] = `
exports[`PageWallet should filter the balances 1`] = `
<div
class="ni-page"
>
Expand All @@ -360,7 +360,7 @@ exports[`PageBalances should filter the balances 1`] = `
class="ni-page-header-title"
>
<h2>
Balances
Wallet
</h2>
</div>
<div
Expand Down

0 comments on commit 27b29a4

Please sign in to comment.