|
|
|
@ -19,7 +19,7 @@ module.exports = { |
|
|
|
|
browser |
|
|
|
|
.pause(5000) |
|
|
|
|
.refresh() |
|
|
|
|
.pause(2000) |
|
|
|
|
.pause(5000) |
|
|
|
|
.getEditorValue((content) => { |
|
|
|
|
browser.assert.ok(content.indexOf('contract Ballot {') !== -1, 'content doesn\'t include Ballot contract') |
|
|
|
|
}) |
|
|
|
@ -37,24 +37,20 @@ module.exports = { |
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) |
|
|
|
|
.pause(5000) |
|
|
|
|
.waitForElementPresent('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.waitForElementVisible('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.pause(1000) |
|
|
|
|
.waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"]') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.addFile('test.sol', { content: 'test' }) |
|
|
|
|
.pause(1000) |
|
|
|
|
// .waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]')
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
.click('*[data-id="workspaceCreate"]') // create workspace_name_1
|
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) |
|
|
|
|
.waitForElementPresent('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"]') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
// .waitForElementNotVisible('*[data-id="treeViewLitreeViewItemtest.sol"]')
|
|
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
}, |
|
|
|
@ -70,8 +66,8 @@ module.exports = { |
|
|
|
|
.waitForElementPresent('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
|
.click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.pause(6000) |
|
|
|
|
// .waitForElementNotVisible('*[data-id="treeViewLitreeViewItemtest.sol"]')
|
|
|
|
|
.pause(1000) |
|
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_renamed"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') |
|
|
|
|
}, |
|
|
|
@ -80,8 +76,10 @@ module.exports = { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.click('*[data-id="workspaceDelete"]') // delete workspace_name_1
|
|
|
|
|
.waitForElementVisible('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
.pause(5000) |
|
|
|
|
.waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"]') |
|
|
|
|
.click('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') |
|
|
|
|
.waitForElementNotPresent('*[data-id="workspacesSelect"] option[value="workspace_name_1"]') |
|
|
|
|
.end() |
|
|
|
|
}, |
|
|
|
|