From 6e66b992a74ce38986baeea6750b92b1ba257cbb Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 23 Sep 2021 16:51:37 +0200 Subject: [PATCH] fix E2E --- apps/remix-ide-e2e/src/tests/terminal.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index bc6f29c13b..7ff5017f24 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -112,13 +112,13 @@ module.exports = { 'Deploy "Owner" using an ether.js script listen to event and check event are logged in the terminal': function (browser: NightwatchBrowser) { browser .click('*[data-id="terminalClearConsole"]') // clear the terminal + .openFile('contracts/2_Owner.sol') + .verifyContracts(['Owner']) .addFile('deployWithEthersJs.js', { content: deployWithEthersJs }) .openFile('deployWithEthersJs.js') .pause(1000) .executeScript('remix.execute(\'deployWithEthersJs.js\')') .waitForElementContainsText('*[data-id="terminalJournal"]', 'Deployment successful.', 60000) - .openFile('contracts/2_Owner.sol') - .verifyContracts(['Owner']) .addAtAddressInstance('0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', true, true) .click('*[data-id="terminalClearConsole"]') // clear the terminal .clickFunction('changeOwner - transact (not payable)', { types: 'address newOwner', values: '0xd9145CCE52D386f254917e481eB44e9943F39138' }) // execute the "changeOwner" function