16971: Added tests to cover more places
[arvados-workbench2.git] / cypress / integration / sharing.spec.js
index 5786c41d563b6d9b68035095958a23404db040a5..4f4c2eb3b32f6974f629cff05d975f0362fbd404 100644 (file)
@@ -78,4 +78,26 @@ describe('Sharing tests', function () {
                 cy.get('[data-cy=context-menu]').should('not.contain', 'Move to trash');
             });
     });
+
+    it('can edit project in shared with me', () => {
+        cy.createProject({
+            owningUser: adminUser,
+            targetUser: activeUser,
+            projectName: 'mySharedWritableProject',
+            canWrite: true,
+            addToFavorites: true
+        });
+
+        cy.getAll('@mySharedWritableProject')
+            .then(function ([mySharedWritableProject]) {
+                cy.loginAs(activeUser);
+                
+                cy.get('[data-cy=side-panel-tree]').contains('Shared with me').click();
+
+                const newProjectName = `New project name ${mySharedWritableProject.name}`;
+                const newProjectDescription = `New project description ${mySharedWritableProject.name}`;
+
+                cy.editProjectOrCollection('main', mySharedWritableProject.name, newProjectName, newProjectDescription);
+            });
+    });
 });
\ No newline at end of file