This commit is contained in:
dennistikhomirov 2018-08-24 01:37:21 -07:00
parent d0f1560479
commit 6b5336b547
2 changed files with 13 additions and 13 deletions

View File

@ -10,34 +10,34 @@ module.exports = {
delete: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(4) > div.remove', delete: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(4) > div.remove',
createAccount: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(3) > span', createAccount: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(3) > span',
import: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(5) > span', import: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(5) > span',
labelImported: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(4) > div.keyring-label' labelImported: '#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(4) > div.keyring-label',
}, },
dot: { dot: {
menu: '.account-dropdown', menu: '.account-dropdown',
showQRcode: '#app-content > div > div.app-primary.from-right > div > div > div:nth-child(1) > flex-column > div.name-label > div > span > div > div > div > li:nth-child(3)' showQRcode: '#app-content > div > div.app-primary.from-right > div > div > div:nth-child(1) > flex-column > div.name-label > div > span > div > div > div > li:nth-child(3)',
} },
}, },
screens: { screens: {
deleteImportedAccount: { deleteImportedAccount: {
title: '#app-content > div > div.app-primary.from-left > div > div.section-title.flex-row.flex-center > h2', title: '#app-content > div > div.app-primary.from-left > div > div.section-title.flex-row.flex-center > h2',
titleText: 'Delete Imported Account' titleText: 'Delete Imported Account',
}, },
importAccounts: { importAccounts: {
title: '#app-content > div > div.app-primary.from-right > div > div:nth-child(2) > div.flex-row.flex-center > h2', title: '#app-content > div > div.app-primary.from-right > div > div:nth-child(2) > div.flex-row.flex-center > h2',
textTitle: 'Import Accounts', textTitle: 'Import Accounts',
fieldPrivateKey: '#private-key-box', fieldPrivateKey: '#private-key-box',
buttonImport: '#app-content > div > div.app-primary.from-right > div > div:nth-child(2) > div:nth-child(4) > button' buttonImport: '#app-content > div > div.app-primary.from-right > div > div:nth-child(2) > div:nth-child(4) > button',
}, },
QRcode: { QRcode: {
address: '.ellip-address', address: '.ellip-address',
buttonArrow: '.fa-arrow-left' buttonArrow: '.fa-arrow-left',
}, },
settings: { settings: {
titleText: 'Settings', titleText: 'Settings',
title: '#app-content > div > div.app-primary.from-right > div > div.section-title.flex-row.flex-center > h2', title: '#app-content > div > div.app-primary.from-right > div > div.section-title.flex-row.flex-center > h2',
buttons: { buttons: {
changePassword: '#app-content > div > div.app-primary.from-right > div > div.flex-column.flex-justify-center.flex-grow.select-none > div > div:nth-child(10) > button:nth-child(5)' changePassword: '#app-content > div > div.app-primary.from-right > div > div.flex-column.flex-justify-center.flex-grow.select-none > div > div:nth-child(10) > button:nth-child(5)',
} },
}, },
main: { main: {
buttonBuy: '#app-content > div > div.app-primary.from-right > div > div > div.flex-row > button:nth-child(3)', buttonBuy: '#app-content > div > div.app-primary.from-right > div > div > div.flex-row > button:nth-child(3)',
@ -101,13 +101,13 @@ module.exports = {
create: { create: {
fieldPassword: 'password-box', fieldPassword: 'password-box',
fieldPasswordConfirm: 'password-box-confirm', fieldPasswordConfirm: 'password-box-confirm',
button: 'button' button: 'button',
}, },
seedPhrase: { seedPhrase: {
fieldPhrase: '.twelve-word-phrase', fieldPhrase: '.twelve-word-phrase',
buttonIveCopied: '#app-content > div > div.app-primary.from-right > div > button:nth-child(4)', buttonIveCopied: '#app-content > div > div.app-primary.from-right > div > button:nth-child(4)',
textButtonIveCopied: 'I\'ve copied it somewhere safe' textButtonIveCopied: 'I\'ve copied it somewhere safe',
} },
}, },
NETWORKS: { NETWORKS: {
POA: 'poa', POA: 'poa',
@ -118,6 +118,6 @@ module.exports = {
RINKEBY: 'rinkeby', RINKEBY: 'rinkeby',
LOCALHOST: 'localhost', LOCALHOST: 'localhost',
CUSTOM: 'http://test.com', CUSTOM: 'http://test.com',
} },
} }

View File

@ -120,7 +120,7 @@ describe('Metamask popup page', async function () {
}) })
it('adds a second account', async function () { it('adds a second account', async function () {
//throw('sf') // throw('sf')
await driver.findElement(By.css(menus.account.menu)).click() await driver.findElement(By.css(menus.account.menu)).click()
await delay(300) await delay(300)
await driver.findElement(By.css(menus.account.createAccount)).click() await driver.findElement(By.css(menus.account.createAccount)).click()