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');
});
const newProjectName = `New project name ${mySharedWritableProject.name}`;
const newProjectDescription = `New project description ${mySharedWritableProject.name}`;
- cy.editProjectOrCollection('main', mySharedWritableProject.name, newProjectName, newProjectDescription);
+ cy.testEditProjectOrCollection('main', mySharedWritableProject.name, newProjectName, newProjectDescription);
});
});
});
\ No newline at end of file