19783: Tweak cypress test to avoid cypress bug
[arvados-workbench2.git] / cypress / integration / collection.spec.js
index 74506aea21b67533e8318bbae402be3b0497a9ee..4a8751efb3a9d86689cdfbf7034ecc983d4cb333 100644 (file)
@@ -628,9 +628,10 @@ describe('Collection panel tests', function () {
                 cy.get('[data-cy=form-dialog]')
                     .should('contain', 'Move to')
                     .within(() => {
+                        // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529
                         cy.get('[data-cy=projects-tree-home-tree-picker]')
                             .find('i')
-                            .click();
+                            .then(el => el.click());
                         cy.get('[data-cy=projects-tree-home-tree-picker]')
                             .contains(projName)
                             .click();