[ARVADOS-WORKBENCH2] updated: 2.1.0-195-g6e807fcc
Git user
git at public.arvados.org
Thu Feb 18 19:31:05 UTC 2021
Summary of changes:
cypress/integration/favorites.spec.js | 36 ++++++++++++++++++++++++++++++-----
1 file changed, 31 insertions(+), 5 deletions(-)
via 6e807fccb8a400d77b7e39f343f6ce634c40a922 (commit)
from b9f3923d7303b4f713dc248f5d96cb1d4db7a815 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 6e807fccb8a400d77b7e39f343f6ce634c40a922
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Thu Feb 18 20:34:25 2021 +0100
17306: Fixed tests for collections
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/cypress/integration/favorites.spec.js b/cypress/integration/favorites.spec.js
index d6055add..eca35bc4 100644
--- a/cypress/integration/favorites.spec.js
+++ b/cypress/integration/favorites.spec.js
@@ -143,23 +143,49 @@ describe('Favorites tests', function () {
});
it('can copy selected into the collection', () => {
- cy.loginAs(activeUser);
+ cy.loginAs(adminUser);
cy.createCollection(adminUser.token, {
name: `Test source collection ${Math.floor(Math.random() * 999999)}`,
- owner_uuid: activeUser.user.uuid,
manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"
})
- .as('testSourceCollection');
+ .as('testSourceCollection').then(function (testSourceCollection) {
+ cy.contains('Refresh').click();
+ cy.get('main').contains(testSourceCollection.name).rightclick();
+ cy.get('[data-cy=context-menu]').within(() => {
+ cy.contains('Share').click();
+ });
+ cy.get('[id="select-permissions"]').as('selectPermissions');
+ cy.get('@selectPermissions').click();
+ cy.contains('Write').click();
+ cy.get('.sharing-dialog').as('sharingDialog');
+ cy.get('[data-cy=invite-people-field]').find('input').type(activeUser.user.email);
+ cy.get('[role=tooltip]').click();
+ cy.get('@sharingDialog').contains('Save').click();
+ });
cy.createCollection(adminUser.token, {
name: `Test target collection ${Math.floor(Math.random() * 999999)}`,
- owner_uuid: activeUser.user.uuid
})
- .as('testTargetCollection');
+ .as('testTargetCollection').then(function (testTargetCollection) {
+ cy.contains('Refresh').click();
+ cy.get('main').contains(testTargetCollection.name).rightclick();
+ cy.get('[data-cy=context-menu]').within(() => {
+ cy.contains('Share').click();
+ });
+ cy.get('[id="select-permissions"]').as('selectPermissions');
+ cy.get('@selectPermissions').click();
+ cy.contains('Write').click();
+ cy.get('.sharing-dialog').as('sharingDialog');
+ cy.get('[data-cy=invite-people-field]').find('input').type(activeUser.user.email);
+ cy.get('[role=tooltip]').click();
+ cy.get('@sharingDialog').contains('Save').click();
+ });
cy.getAll('@testSourceCollection', '@testTargetCollection')
.then(function ([testSourceCollection, testTargetCollection]) {
+ cy.loginAs(activeUser);
+
cy.get('.layout-pane-primary')
.contains('Projects').click();
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list