Merge branch '19783-picking-tweak' refs #19783
[arvados-workbench2.git] / cypress / integration / collection.spec.js
index 057df65fe85c209121428b634c68cd4d77bd4753..01d7001f2fe55ca0975578379905a012b6ffc0e1 100644 (file)
@@ -677,9 +677,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();