focus on footer to ensure ok click

pull/5370/head
ioedeveloper 3 years ago
parent 3eb885962a
commit 610c44b657
  1. 1
      apps/remix-ide-e2e/src/tests/gist.spec.ts
  2. 6
      apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
  3. 1
      apps/remix-ide-e2e/src/tests/workspace.test.ts

@ -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)

Loading…
Cancel
Save