|
|
@ -38,8 +38,8 @@ module.exports = { |
|
|
|
.waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
.waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) |
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) |
|
|
|
.pause(1000) |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
@ -48,11 +48,8 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) |
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) |
|
|
|
.waitForElementVisible('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok]') |
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.execute(function () { document.querySelector('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') }) |
|
|
|
|
|
|
|
.pause(2000) |
|
|
|
|
|
|
|
.click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
@ -68,10 +65,8 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextRename"]')['value'] = 'workspace_name_renamed' }) |
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextRename"]')['value'] = 'workspace_name_renamed' }) |
|
|
|
.pause(2000) |
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.waitForElementPresent('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
|
|
|
|
.pause(2000) |
|
|
|
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
@ -84,10 +79,8 @@ module.exports = { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.click('*[data-id="workspaceDelete"]') // delete workspace_name_1
|
|
|
|
.click('*[data-id="workspaceDelete"]') // delete workspace_name_1
|
|
|
|
.waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.pause(2000) |
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
|
|
|
.pause(2000) |
|
|
|
|
|
|
|
.waitForElementNotPresent('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.waitForElementNotPresent('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
}, |
|
|
|
}, |
|
|
|