|
|
@ -21,6 +21,7 @@ module.exports = { |
|
|
|
'Test Auto Deploy Lib': function (browser: NightwatchBrowser) { |
|
|
|
'Test Auto Deploy Lib': function (browser: NightwatchBrowser) { |
|
|
|
let addressRef: string |
|
|
|
let addressRef: string |
|
|
|
browser.verifyContracts(['test']) |
|
|
|
browser.verifyContracts(['test']) |
|
|
|
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.selectContract('test') |
|
|
|
.selectContract('test') |
|
|
|
.createContract('') |
|
|
|
.createContract('') |
|
|
|
.getAddressAtPosition(0, (address) => { |
|
|
|
.getAddressAtPosition(0, (address) => { |
|
|
@ -45,6 +46,7 @@ module.exports = { |
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.click('#compileTabView button[title="Compile"]') // that should generate the JSON artefact
|
|
|
|
.click('#compileTabView button[title="Compile"]') // that should generate the JSON artefact
|
|
|
|
.verifyContracts(['test']) |
|
|
|
.verifyContracts(['test']) |
|
|
|
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.selectContract('lib') // deploy lib
|
|
|
|
.selectContract('lib') // deploy lib
|
|
|
|
.createContract('') |
|
|
|
.createContract('') |
|
|
|
.perform((done) => { |
|
|
|
.perform((done) => { |
|
|
@ -74,6 +76,7 @@ function checkDeployShouldFail (browser: NightwatchBrowser, callback: VoidFuncti |
|
|
|
browser.setEditorValue(JSON.stringify(config)) |
|
|
|
browser.setEditorValue(JSON.stringify(config)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.openFile('browser/Untitled5.sol') |
|
|
|
.openFile('browser/Untitled5.sol') |
|
|
|
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.selectContract('test') // deploy lib
|
|
|
|
.selectContract('test') // deploy lib
|
|
|
|
.createContract('') |
|
|
|
.createContract('') |
|
|
|
.getText('div[class^="terminal"]', (value) => { |
|
|
|
.getText('div[class^="terminal"]', (value) => { |
|
|
@ -96,6 +99,7 @@ function checkDeployShouldSucceed (browser: NightwatchBrowser, address: string, |
|
|
|
browser.setEditorValue(JSON.stringify(config)) |
|
|
|
browser.setEditorValue(JSON.stringify(config)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.openFile('browser/Untitled5.sol') |
|
|
|
.openFile('browser/Untitled5.sol') |
|
|
|
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.selectContract('test') // deploy lib
|
|
|
|
.selectContract('test') // deploy lib
|
|
|
|
.createContract('') |
|
|
|
.createContract('') |
|
|
|
.getAddressAtPosition(1, (address) => { |
|
|
|
.getAddressAtPosition(1, (address) => { |
|
|
|