mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix tests.
This commit is contained in:
parent
d7985fbf77
commit
07dd064247
@ -10,6 +10,7 @@ import ImportSeedPhraseScreen from './import-seed-phrase-screen'
|
|||||||
import {
|
import {
|
||||||
onboardingBuyEthView,
|
onboardingBuyEthView,
|
||||||
unMarkPasswordForgotten,
|
unMarkPasswordForgotten,
|
||||||
|
showModal,
|
||||||
} from '../../../../ui/app/actions'
|
} from '../../../../ui/app/actions'
|
||||||
|
|
||||||
class FirstTimeFlow extends Component {
|
class FirstTimeFlow extends Component {
|
||||||
@ -80,7 +81,7 @@ class FirstTimeFlow extends Component {
|
|||||||
renderScreen () {
|
renderScreen () {
|
||||||
const {SCREEN_TYPE} = FirstTimeFlow
|
const {SCREEN_TYPE} = FirstTimeFlow
|
||||||
const {
|
const {
|
||||||
goToBuyEtherView,
|
openBuyEtherModal,
|
||||||
address,
|
address,
|
||||||
restoreCreatePasswordScreen,
|
restoreCreatePasswordScreen,
|
||||||
forgottenPassword,
|
forgottenPassword,
|
||||||
|
@ -57,9 +57,9 @@ async function runFirstTimeUsageTest (assert, done) {
|
|||||||
;(await findAsync(app, '.first-time-flow__button')).click()
|
;(await findAsync(app, '.first-time-flow__button')).click()
|
||||||
|
|
||||||
// Deposit Ether Screen
|
// Deposit Ether Screen
|
||||||
const buyEthTitle = (await findAsync(app, '.buy-ether__title'))[0]
|
const depositEthTitle = (await findAsync(app, '.page-container__title'))[0]
|
||||||
assert.equal(buyEthTitle.textContent, 'Deposit Ether', 'deposit ether screen')
|
assert.equal(depositEthTitle.textContent, 'Deposit Ether', 'deposit ether screen')
|
||||||
;(await findAsync(app, '.buy-ether__do-it-later')).click()
|
;(await findAsync(app, '.page-container__header-close')).click()
|
||||||
|
|
||||||
const menu = (await findAsync(app, '.account-menu__icon'))[0]
|
const menu = (await findAsync(app, '.account-menu__icon'))[0]
|
||||||
menu.click()
|
menu.click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user