From fab4073a30fb2c4c97ab52070a2d4a69dc4532e7 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 29 Dec 2023 18:52:23 +0100 Subject: [PATCH] fix(cy): settings spec timing issue 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 --- cypress/e2e/settings.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/settings.spec.js b/cypress/e2e/settings.spec.js index 341a2d6f29..b1c1ace3ad 100644 --- a/cypress/e2e/settings.spec.js +++ b/cypress/e2e/settings.spec.js @@ -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')