e2e: improve stability #1

This commit is contained in:
dennistikhomirov 2018-12-06 22:16:58 -08:00
parent 8369b7c369
commit df77dcf657
1 changed files with 236 additions and 237 deletions

View File

@ -244,11 +244,11 @@ describe('Metamask popup page', async function () {
})
})
describe('Import Contract', async () => {
describe('Import Contract account', async () => {
const poaContract = '0xc6468767214c577013a904900ada0a0dd6653bc3'
const wrongAddress = '0xB87b6077D59B01Ab9fa8cd5A1A21D02a4d60D35'
const notContractAddress = '0x56B2e3C3cFf7f3921Dc2e0F8B8e20d1eEc29216b'
describe('Import Contract', async () => {
it('opens import account menu', async function () {
await setProvider(NETWORKS.ROPSTEN)
const menu = await waitUntilShowUp(menus.account.menu)
@ -318,9 +318,8 @@ describe('Metamask popup page', async function () {
await field.sendKeys(notContractAddress)
const button = await waitUntilShowUp(screens.importAccounts.buttonImport)
await button.click()
await waitUntilShowUp(elements.loader, 25)
await delay(2000)
await waitUntilDisappear(elements.loader, 25)
await waitUntilShowUp(elements.loader, 60)
await waitUntilDisappear(elements.loader, 60)
})
it.skip('Error message if not contract address', async function () {
@ -501,7 +500,7 @@ describe('Metamask popup page', async function () {
assert.notEqual(identicon, false, 'main screen didn\'t opened')
})
})
})
describe('Sign Data', () => {