|
|
@ -5,7 +5,7 @@ import sauce from './sauce' |
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp&plugincall=fileManager//open//3_Ballot.sol', false) |
|
|
|
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp&plugincall=fileManager//open//3_Ballot.sol&deactivateplugins=home', false) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'CheckSolidityActivatedAndUDapp': function (browser: NightwatchBrowser) { |
|
|
|
'CheckSolidityActivatedAndUDapp': function (browser: NightwatchBrowser) { |
|
|
@ -21,6 +21,11 @@ module.exports = { |
|
|
|
.getEditorValue((content) => { |
|
|
|
.getEditorValue((content) => { |
|
|
|
browser.assert.ok(content.indexOf('contract Ballot {') != -1, 'content doesn\'t include Ballot contract') |
|
|
|
browser.assert.ok(content.indexOf('contract Ballot {') != -1, 'content doesn\'t include Ballot contract') |
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'Home page should be deactivated': function (browser: NightwatchBrowser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.waitForElementNotPresent('[data-id="landingPageHomeContainer"]') |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|