From 37b5e2adf4b306b7c8c61b5066a8f4ad908129f9 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 4 May 2020 14:52:34 +0300 Subject: [PATCH] Return contract test Add CHANGELOG entry --- CHANGELOG.md | 3 ++- test/e2e/nw.spec.js | 10 +++++----- test/e2e/test-cases/delete-imported-account.spec.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e97eec4..5d2c8f51d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## Current Master -- [#364](https://github.com/poanetwork/nifty-wallet/pull/364) - Fix notifications order in batch requests +- [#377](https://github.com/poanetwork/nifty-wallet/pull/377) - (Fix) Sign message screen: do not decode message if it is not hex encoded +- [#364](https://github.com/poanetwork/nifty-wallet/pull/364) - (Fix) notifications order in batch requests ## 5.0.3 Fri May 01 2020 diff --git a/test/e2e/nw.spec.js b/test/e2e/nw.spec.js index 6fe5afa9b..b776415c9 100644 --- a/test/e2e/nw.spec.js +++ b/test/e2e/nw.spec.js @@ -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) diff --git a/test/e2e/test-cases/delete-imported-account.spec.js b/test/e2e/test-cases/delete-imported-account.spec.js index bf32aa997..389a1e4ef 100644 --- a/test/e2e/test-cases/delete-imported-account.spec.js +++ b/test/e2e/test-cases/delete-imported-account.spec.js @@ -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)