Skip to content

Commit

Permalink
Click on new resource dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jun 23, 2020
1 parent 98c3435 commit f2236da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/acceptance/pageObjects/filesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ module.exports = {
return (
this.waitForElementVisible('@dialog')
.waitForAnimationToFinish()
// clicking file overwrite dialog overlay to remove file upload
// popup, as we upload the file directly using `setValue`. The overwrite
// dialog is too fast and does not give time to close the dropdown beforehand
.clickElementAt(this.elements.dialog.selector, 0, 0)
// clicking new resource dropdown to hide it, as we upload the file directly using `setValue`.
// The overwrite dialog is too fast and does not give time to close the dropdown beforehand
.clickElementAt(this.elements.newResourceDropdown.selector, 0, 0)
.waitForElementNotVisible('@newFolderButton')
.click('@dialogConfirmBtn')
.waitForElementNotPresent('@dialog')
Expand Down Expand Up @@ -288,6 +287,9 @@ module.exports = {
deleteSelectedButton: {
selector: '#delete-selected-btn'
},
newResourceDropdown: {
selector: '#new-file-menu-drop'
},
newFolderButton: {
selector: '#new-folder-btn'
},
Expand Down

0 comments on commit f2236da

Please sign in to comment.