17782: Fixes cypress tests.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 2 Jul 2021 19:31:02 +0000 (16:31 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 2 Jul 2021 19:31:02 +0000 (16:31 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

cypress/integration/collection.spec.js
cypress/integration/sharing.spec.js

index 797a9d49fedf4838a8dfdc2619600a644dcbbe40..f3b63218de0901d39472368429bd9c2df51e6072 100644 (file)
@@ -586,7 +586,7 @@ describe('Collection panel tests', function () {
         cy.get('[data-cy=breadcrumb-last]').should('contain', collName);
     });
 
-    it.only('shows responsible person for collection if available', () => {
+    it('shows responsible person for collection if available', () => {
         cy.createCollection(adminUser.token, {
             name: `Test collection ${Math.floor(Math.random() * 999999)}`,
             owner_uuid: activeUser.user.uuid,
index 5786c41d563b6d9b68035095958a23404db040a5..14eb9acef3aa43eced7d5c7f5efd9eaed171d1d1 100644 (file)
@@ -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');
             });