|
|
@ -34,18 +34,16 @@ module.exports = { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptText"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
.clearValue('*[data-id="modalDialogCustomPromptText"]') |
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' })
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptText"]', 'workspace_name') |
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.modalFooterOKClick() |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name_1
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name_1
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptText"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
.clearValue('*[data-id="modalDialogCustomPromptText"]') |
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' })
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptText"]', 'workspace_name_1') |
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.modalFooterOKClick() |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name"]') |
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name"]') |
|
|
|