e2e:remove add custom token tests for avoid merging conflict after merge#149
This commit is contained in:
parent
60e7432ea8
commit
e1794ab862
|
@ -1040,104 +1040,6 @@ describe('Metamask popup page', async function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('Check support of token per network basis ', async function () {
|
||||
|
||||
describe('Token should be displayed only for network, where it was added ', async function () {
|
||||
|
||||
it('token should not be displayed in POA network', async function () {
|
||||
await setProvider(NETWORKS.POA)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in DAI network', async function () {
|
||||
await setProvider(NETWORKS.DAI)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in SOKOL network', async function () {
|
||||
await setProvider(NETWORKS.SOKOL)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in MAINNET network', async function () {
|
||||
await setProvider(NETWORKS.MAINNET)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in ROPSTEN network', async function () {
|
||||
await setProvider(NETWORKS.ROPSTEN)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in KOVAN network', async function () {
|
||||
await setProvider(NETWORKS.KOVAN)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
|
||||
it('token should not be displayed in RINKEBY network', async function () {
|
||||
await setProvider(NETWORKS.RINKEBY)
|
||||
assert.equal(await assertTokensNotDisplayed(), true, 'tokens are displayed')
|
||||
})
|
||||
})
|
||||
|
||||
describe('Add token with the same address to each network ', async function () {
|
||||
|
||||
const tokenName = 'DVT'
|
||||
const tokenDecimals = '13'
|
||||
|
||||
it('adds token with the same address to POA network', async function () {
|
||||
await setProvider(NETWORKS.POA)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('adds token with the same address to SOKOL network', async function () {
|
||||
await setProvider(NETWORKS.SOKOL)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('adds token with the same address to ROPSTEN network', async function () {
|
||||
await setProvider(NETWORKS.ROPSTEN)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('adds token with the same address to KOVAN network', async function () {
|
||||
await setProvider(NETWORKS.KOVAN)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('adds token with the same address to RINKEBY network', async function () {
|
||||
await setProvider(NETWORKS.RINKEBY)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('adds token with the same address to MAINNET network', async function () {
|
||||
await setProvider(NETWORKS.MAINNET)
|
||||
await addToken(tokenAddress, tokenName, tokenDecimals)
|
||||
const tokenBalance = await waitUntilShowUp(screens.main.tokens.balance)
|
||||
assert.notEqual(await tokenBalance.getText(), '')
|
||||
})
|
||||
|
||||
it('token still should be displayed in LOCALHOST network', async function () {
|
||||
await setProvider(NETWORKS.LOCALHOST)
|
||||
await waitUntilDisappear(screens.main.tokens.amount)
|
||||
assert.notEqual(await waitUntilShowUp(screens.main.tokens.amount), false, 'App is frozen')
|
||||
const tokens = await driver.findElements(screens.main.tokens.amount)
|
||||
assert.equal(tokens.length, 1, '\'Tokens\' section doesn\'t contain field with amount of tokens')
|
||||
assert.equal(await tokens[0].getText(), screens.main.tokens.textYouOwn1token, 'Token isn\'t displayed')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Transfer tokens', function () {
|
||||
|
||||
const account2 = '0x2f318C334780961FB129D2a6c30D0763d9a5C970'
|
||||
|
|
Loading…
Reference in New Issue