|
|
|
@ -4,7 +4,7 @@ import init from '../helpers/init' |
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
|
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', true) |
|
|
|
|
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', false) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should execution a simple console command': function (browser: NightwatchBrowser) { |
|
|
|
@ -135,6 +135,8 @@ module.exports = { |
|
|
|
|
.click('*[data-id="terminalClearConsole"]') // clear the terminal
|
|
|
|
|
.addFile('printHardhatlog.sol', { content: hardhatLog }) |
|
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
|
.waitForElementVisible('[for="autoCompile"]') |
|
|
|
|
.click('[for="autoCompile"]') |
|
|
|
|
.testContracts('printHardhatlog.sol', { content: hardhatLog }, ['OwnerTest']) |
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
|
.selectContract('OwnerTest') |
|
|
|
|