|
|
|
@ -37,10 +37,11 @@ module.exports = { |
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name
|
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > span') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) |
|
|
|
|
.click('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.clearValue('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptTextCreate"]', 'workspace_name') |
|
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.pause(1000) |
|
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
@ -48,10 +49,11 @@ module.exports = { |
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name_1
|
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > span') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) |
|
|
|
|
.click('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.clearValue('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptTextCreate"]', 'workspace_name_1') |
|
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
@ -65,10 +67,11 @@ module.exports = { |
|
|
|
|
.click('*[data-id="workspaceRename"]') // rename workspace_name
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextRename"]')['value'] = 'workspace_name_renamed' }) |
|
|
|
|
.click('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
|
.clearValue('*[data-id="modalDialogCustomPromptTextRename"]') |
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptTextRename"]', 'workspace_name_renamed') |
|
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementPresent('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.pause(2000) |
|
|
|
@ -84,7 +87,7 @@ module.exports = { |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.click('*[data-id="workspaceDelete"]') // delete workspace_name_1
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementNotPresent('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.end() |
|
|
|
|
}, |
|
|
|
|