|
|
@ -159,7 +159,7 @@ module.exports = { |
|
|
|
.click('*[data-id="testTabGenerateTestFolder"]') |
|
|
|
.click('*[data-id="testTabGenerateTestFolder"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Changing current path when workspace changed': function (browser: NightwatchBrowser) { |
|
|
|
'Changing current path when workspace changed and checking test files creation': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') |
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') |
|
|
|
.clickLaunchIcon('settings') |
|
|
|
.clickLaunchIcon('settings') |
|
|
@ -177,6 +177,14 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.waitForElementVisible('*[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystem-modal-footer-ok-react"]') as HTMLElement).click() }) |
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystem-modal-footer-ok-react"]') as HTMLElement).click() }) |
|
|
|
.waitForElementPresent('*[data-id="workspacesSelect"] option[value="workspace_new"]') |
|
|
|
.waitForElementPresent('*[data-id="workspacesSelect"] option[value="workspace_new"]') |
|
|
|
|
|
|
|
.waitForElementVisible('li[data-id="treeViewLitreeViewItem.deps/remix-tests/remix_tests.sol"]') |
|
|
|
|
|
|
|
.waitForElementVisible('li[data-id="treeViewLitreeViewItem.deps/remix-tests/remix_accounts.sol"]') |
|
|
|
|
|
|
|
.openFile('.deps/remix-tests/remix_tests.sol') |
|
|
|
|
|
|
|
// remix_test.sol should be opened in editor
|
|
|
|
|
|
|
|
.getEditorValue((content) => browser.assert.ok(content.indexOf('library Assert {') !== -1)) |
|
|
|
|
|
|
|
.openFile('.deps/remix-tests/remix_accounts.sol') |
|
|
|
|
|
|
|
// remix_accounts.sol should be opened in editor
|
|
|
|
|
|
|
|
.getEditorValue((content) => browser.assert.ok(content.indexOf('library TestsAccounts {') !== -1)) |
|
|
|
// end of creating
|
|
|
|
// end of creating
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|