diff options
author | Dan <danjm.com@gmail.com> | 2018-03-27 02:57:19 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-27 02:57:19 +0800 |
commit | 07dd06424741c5a43de136496d44a6f9089e837b (patch) | |
tree | 4b9df6d43e23a0fb9446145bd52f69bc7e20957a | |
parent | d7985fbf7775e4859a9d376c6c41df934e20b7b7 (diff) | |
download | dexon-wallet-07dd06424741c5a43de136496d44a6f9089e837b.tar.gz dexon-wallet-07dd06424741c5a43de136496d44a6f9089e837b.tar.zst dexon-wallet-07dd06424741c5a43de136496d44a6f9089e837b.zip |
Fix tests.
-rw-r--r-- | mascara/src/app/first-time/index.js | 3 | ||||
-rw-r--r-- | test/integration/lib/mascara-first-time.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mascara/src/app/first-time/index.js b/mascara/src/app/first-time/index.js index d2f444fe..c0bba53d 100644 --- a/mascara/src/app/first-time/index.js +++ b/mascara/src/app/first-time/index.js @@ -10,6 +10,7 @@ import ImportSeedPhraseScreen from './import-seed-phrase-screen' import { onboardingBuyEthView, unMarkPasswordForgotten, + showModal, } from '../../../../ui/app/actions' class FirstTimeFlow extends Component { @@ -80,7 +81,7 @@ class FirstTimeFlow extends Component { renderScreen () { const {SCREEN_TYPE} = FirstTimeFlow const { - goToBuyEtherView, + openBuyEtherModal, address, restoreCreatePasswordScreen, forgottenPassword, diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js index bcbc94ff..56485258 100644 --- a/test/integration/lib/mascara-first-time.js +++ b/test/integration/lib/mascara-first-time.js @@ -57,9 +57,9 @@ async function runFirstTimeUsageTest (assert, done) { ;(await findAsync(app, '.first-time-flow__button')).click() // Deposit Ether Screen - const buyEthTitle = (await findAsync(app, '.buy-ether__title'))[0] - assert.equal(buyEthTitle.textContent, 'Deposit Ether', 'deposit ether screen') - ;(await findAsync(app, '.buy-ether__do-it-later')).click() + const depositEthTitle = (await findAsync(app, '.page-container__title'))[0] + assert.equal(depositEthTitle.textContent, 'Deposit Ether', 'deposit ether screen') + ;(await findAsync(app, '.page-container__header-close')).click() const menu = (await findAsync(app, '.account-menu__icon'))[0] menu.click() |