Merge pull request #376 from poanetwork/vb-return-test
Return contract import test
This commit is contained in:
commit
b58bb7631b
|
@ -8,10 +8,10 @@ const account2 = '0xd7b7AFeCa35e32594e29504771aC847E2a803742'
|
|||
const testsFolder = './test-cases'
|
||||
const setup = require(`${testsFolder}/setup.spec`)
|
||||
const login = require(`${testsFolder}/login.spec`)
|
||||
const { accountCreation } = require(`${testsFolder}/account-creation.spec`)
|
||||
const { accountCreation, getCreatedAccounts } = require(`${testsFolder}/account-creation.spec`)
|
||||
const connectHDWallet = require(`${testsFolder}/connect-hd-wallet.spec`)
|
||||
const importAccount = require(`${testsFolder}/import-account.spec`)
|
||||
// const importContractAccount = require(`${testsFolder}/import-contract-account.spec`)
|
||||
const importContractAccount = require(`${testsFolder}/import-contract-account.spec`)
|
||||
const deleteImportedAccount = require(`${testsFolder}/delete-imported-account.spec`)
|
||||
const signData = require(`${testsFolder}/sign-data.spec`)
|
||||
const exportPrivateKey = require(`${testsFolder}/export-private-key.spec`)
|
||||
|
@ -100,9 +100,9 @@ describe('Metamask popup page', async function () {
|
|||
await importAccount(f)
|
||||
})
|
||||
|
||||
// describe('Import Contract account', async () => {
|
||||
// await importContractAccount(f, account1, getCreatedAccounts)
|
||||
// })
|
||||
describe('Import Contract account', async () => {
|
||||
await importContractAccount(f, account1, getCreatedAccounts)
|
||||
})
|
||||
|
||||
describe('Delete Imported Account', async () => {
|
||||
await deleteImportedAccount(f)
|
||||
|
|
|
@ -15,7 +15,7 @@ const deleteImportedAccount = async (f) => {
|
|||
})
|
||||
|
||||
it("Can't remove imported account with 'No' button", async function () {
|
||||
const button = await f.waitUntilShowUp(deleteImportedAccountScr.buttons.no)
|
||||
const button = await f.waitUntilShowUp(deleteImportedAccountScr.buttons.no2)
|
||||
assert.equal(await button.getText(), 'No', 'button has incorrect name')
|
||||
await f.click(button)
|
||||
await f.driver.findElements(main.container)
|
||||
|
|
Loading…
Reference in New Issue