X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/555a6df1236e6c36a2552ee6100225c389f4c884..a167017da0181a84d0c5493364bc0f7f3fa3e942:/cypress/integration/favorites.spec.js diff --git a/cypress/integration/favorites.spec.js b/cypress/integration/favorites.spec.js index 7fd091245f..db9a0d5f39 100644 --- a/cypress/integration/favorites.spec.js +++ b/cypress/integration/favorites.spec.js @@ -119,7 +119,10 @@ describe('Favorites tests', function () { }); cy.get('[data-cy=form-dialog]').within(function () { - cy.get('[data-cy=projects-tree-favourites-tree-picker]').find('i').click(); + // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529 + cy.get('[data-cy=projects-tree-favourites-tree-picker]') + .find('i') + .then(el => el.click()); cy.contains(myProject1.name); cy.contains(mySharedWritableProject.name); cy.get('[data-cy=projects-tree-favourites-tree-picker]')