|
|
|
@ -3,12 +3,12 @@ import { NightwatchBrowser } from 'nightwatch' |
|
|
|
|
import init from '../helpers/init' |
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|
|
|
|
|
|
'@disabled': true, |
|
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
|
init(browser, done) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should start coding': function (browser: NightwatchBrowser) { |
|
|
|
|
'Should start coding #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.waitForElementVisible('*[data-id="homeTabGetStartedremixDefault"]') |
|
|
|
|
.click('*[data-id="homeTabGetStartedremixDefault"]') |
|
|
|
@ -25,7 +25,7 @@ module.exports = { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should start with ERC20 workspace': function (browser: NightwatchBrowser) { |
|
|
|
|
'Should start with ERC20 workspace #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-path="home"') |
|
|
|
|
.waitForElementVisible('*[data-id="homeTabGetStartedERC20"]') |
|
|
|
@ -41,7 +41,7 @@ module.exports = { |
|
|
|
|
browser.assert.ok(editorContent.indexOf(`import "../contracts/MyToken.sol";`) !== -1, 'content encountered!') |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
'Should create a new file in the current workspace': function (browser: NightwatchBrowser) { |
|
|
|
|
'Should create a new file in the current workspace': '' +function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-path="home"]') |
|
|
|
|
.waitForElementVisible('*[data-id="homeTabNewFile"]') |
|
|
|
|