|
|
@ -16,13 +16,20 @@ module.exports = { |
|
|
|
'@sources': function () { |
|
|
|
'@sources': function () { |
|
|
|
return sources |
|
|
|
return sources |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
'Turn off autcompilation': function (browser: NightwatchBrowser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
|
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
|
|
|
|
.waitForElementVisible('[for="autoCompile"]') |
|
|
|
|
|
|
|
.click('[for="autoCompile"]') |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Add Ballot': function (browser: NightwatchBrowser) { |
|
|
|
'Add Ballot': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.addFile('Untitled.sol', sources[0]['Untitled.sol']) |
|
|
|
.addFile('Untitled.sol', sources[0]['Untitled.sol']) |
|
|
|
}, |
|
|
|
}, |
|
|
|
'Set Ballot 0.4.14': function (browser: NightwatchBrowser) { |
|
|
|
'Set Ballot 0.4.14': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
|
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.setSolidityCompilerVersion('soljson-v0.4.14+commit.c2215d46.js') |
|
|
|
.setSolidityCompilerVersion('soljson-v0.4.14+commit.c2215d46.js') |
|
|
|
}, |
|
|
|
}, |
|
|
|