X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7edd5a7c86af0814f8a2282aa266a9d1a604a45f..5e805cf2209d3afe42699e4658d8a12e50bcd5a4:/cypress/integration/sharing.spec.js diff --git a/cypress/integration/sharing.spec.js b/cypress/integration/sharing.spec.js index c5664e3b..5a297136 100644 --- a/cypress/integration/sharing.spec.js +++ b/cypress/integration/sharing.spec.js @@ -74,6 +74,10 @@ describe('Sharing tests', function () { cy.get('[data-cy=context-menu]').should('contain', 'Move to trash'); cy.get('[data-cy=context-menu]').contains('Move to trash').click(); + // GUARD: Let's wait for the above removed project to disappear + // before continuing, to avoid intermittent failures. + cy.get('main').should('not.contain', mySharedWritableProject.name); + cy.get('main').contains(mySharedReadonlyProject.name).rightclick(); cy.get('[data-cy=context-menu]').should('not.contain', 'Move to trash'); });