Skip to content

Commit

Permalink
fix(cy): settings spec timing issue
Browse files Browse the repository at this point in the history
Make sure the navigation to the `Collectives` folder finished
before clicking the `Choose` button.

Waiting for `@propfind` is not enough,
as the propfinds that happened in between
will also trigger it.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Dec 29, 2023
1 parent da91bbe commit fab4073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/settings.spec.js
Original file line number Diff line number Diff line change
@@ -89,6 +89,8 @@ describe('Settings', function() {
// Open and select default folder
cy.get(filePickerListSelector).contains('Collectives')
.click()
cy.get(filePickerListSelector).contains('Collectives')
.should('not.exist')
cy.get('button').contains('Choose')
.click()
cy.wait('@setCollectivesFolder')

0 comments on commit fab4073

Please sign in to comment.