Commit bd4364fe authored by ioedeveloper's avatar ioedeveloper

focus on footer to ensure ok click

parent 57877662
......@@ -104,6 +104,7 @@ module.exports = {
.waitForElementVisible('*[data-id="fileExplorerNewFilepublishToGist"]')
.click('*[data-id="fileExplorerNewFilepublishToGist"]')
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
.click('[data-id="fileSystemModalDialogModalFooter-react"]') // focus on footer to ensure ok click
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
.pause(10000)
.perform((done) => {
......
......@@ -167,12 +167,6 @@ module.exports = {
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_new' })
.waitForElementVisible('*[data-id="fileSystem-modal-footer-ok-react"]')
.click('*[data-id="fileSystem-modal-footer-ok-react"]')
.getLog('browser', function (logEntriesArray) {
console.log('Log length: ' + logEntriesArray.length)
logEntriesArray.forEach(function (log) {
console.log('[' + log.level + '] ' + log.timestamp + ' : ' + log.message)
})
})
.waitForElementPresent('*[data-id="workspacesSelect"] option[value="workspace_new"]')
// end of creating
.clickLaunchIcon('solidityUnitTesting')
......
......@@ -50,6 +50,7 @@ module.exports = {
// eslint-disable-next-line dot-notation
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' })
.waitForElementVisible('[data-id="fileSystem-modal-footer-ok-react"]')
.click('[data-id="fileSystemModalDialogModalFooter-react"]') // focus on footer to ensure ok click
.click('[data-id="fileSystem-modal-footer-ok-react"]')
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]')
.pause(2000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment