|
|
|
@ -38,7 +38,7 @@ module.exports = { |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) |
|
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem/tests"]') |
|
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name_1
|
|
|
|
@ -46,16 +46,16 @@ module.exports = { |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) |
|
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem/tests"]') |
|
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem/tests"]') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should rename a workspace': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-id="workspaceRename"]') // rename workspace_name
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem/tests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextRename"]')['value'] = 'workspace_name_renamed' }) |
|
|
|
|