Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
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,
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');
});