Merge pull request #178 from dennis00010011b/e2e-poa-autodetect

e2e tests autodetect tokens in Mainnet
This commit is contained in:
Victor Baranov 2018-10-31 23:07:59 +03:00 committed by GitHub
commit 9e2533fb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -270,8 +270,10 @@ describe('Metamask popup page', async function () {
assert.equal(await balance.getText(), '1 DOPR', 'token isnt\' auto-detected')
})
it.skip('Auto-detect tokens for MAIN core network ', async function () {
it('Auto-detect tokens for MAIN core network ', async function () {
await setProvider(NETWORKS.MAINNET)
await waitUntilShowUp(elements.loader, 25)
await waitUntilDisappear(elements.loader, 25)
const balance = await waitUntilShowUp(screens.main.tokens.balance)
console.log(await balance.getText())
assert.equal(await balance.getText(), '0.001 WETH', 'token isnt\' auto-detected')
@ -1400,7 +1402,6 @@ describe('Metamask popup page', async function () {
})
it('token should not be displayed in LOCALHOST network', async function () {
console.log('https://github.com/poanetwork/metamask-extension/issues/131')
await setProvider(NETWORKS.LOCALHOST)
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
})
@ -1423,12 +1424,15 @@ describe('Metamask popup page', async function () {
describe('remove Mainnet\'s tokens', function () {
it('remove tokens', async function () {
await setProvider(NETWORKS.MAINNET)
let menu
let button
let counter
let buttonYes
await setProvider(NETWORKS.MAINNET)
await waitUntilShowUp(elements.loader, 25)
await waitUntilDisappear(elements.loader, 50)
menu = await waitUntilShowUp(menus.token.menu)
await menu.click()
button = await waitUntilShowUp(menus.token.remove)