projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18692: added lock iton to the breadcrumbs
[arvados-workbench2.git]
/
cypress
/
integration
/
sharing.spec.js
diff --git
a/cypress/integration/sharing.spec.js
b/cypress/integration/sharing.spec.js
index c5664e3b89e272518c6591e204d6dc474d3323be..5a297136b4c89bcf744a9eeb9d7ee5d9e193c84a 100644
(file)
--- 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();
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');
});
cy.get('main').contains(mySharedReadonlyProject.name).rightclick();
cy.get('[data-cy=context-menu]').should('not.contain', 'Move to trash');
});