15768: all collection specs pass Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox...
[arvados.git] / cypress / integration / collection.spec.js
index 75ae8237d10a3409f9be215128d2874ca2850df9..8145ec3ffb893eac7fe3ec9258a552ed2152bbbb 100644 (file)
@@ -753,12 +753,12 @@ describe("Collection panel tests", function () {
                 cy.get("[data-cy=collection-files-panel]").should("contain", "foo").and("contain", "bar");
 
                 // Modify collection, expect version number change
-                // cy.get('[data-cy=collection-files-panel]').contains('foo').rightclick();
-                // cy.get('[data-cy=context-menu]').contains('Remove').click();
-                // cy.get('[data-cy=confirmation-dialog]').should('contain', 'Removing file');
-                // cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
-                // cy.get('[data-cy=collection-version-number]').should('contain', '2');
-                // cy.get('[data-cy=collection-files-panel]').should('not.contain', 'foo').and('contain', 'bar');
+                cy.get("[data-cy=collection-files-panel]").contains("foo").rightclick();
+                cy.get("[data-cy=context-menu]").contains("Remove").click();
+                cy.get("[data-cy=confirmation-dialog]").should("contain", "Removing file");
+                cy.get("[data-cy=confirmation-dialog-ok-btn]").click();
+                cy.get("[data-cy=collection-version-number]").should("contain", "2");
+                cy.get("[data-cy=collection-files-panel]").should("not.contain", "foo").and("contain", "bar");
 
                 // Click on version number, check version browser. Click on past version.
                 cy.get("[data-cy=collection-version-browser]").should("not.exist");
@@ -772,7 +772,7 @@ describe("Collection panel tests", function () {
                         cy.get("[data-cy=collection-version-browser-select-1]")
                             .should("contain", "1")
                             .and("contain", "6 B")
-                            .and("contain", adminUser.user.uuid);
+                            .and("contain", adminUser.user.full_name);
                         // Version 2: 3 bytes in size (one file removed)
                         cy.get("[data-cy=collection-version-browser-select-2]")
                             .should("contain", "2")
@@ -823,7 +823,7 @@ describe("Collection panel tests", function () {
                 cy.get("[data-cy=collection-version-browser-select-3]").should("contain", "3").and("contain", "3 B");
 
                 // Check context menus on version browser
-                cy.get("[data-cy=collection-version-browser-select-3]").rightclick();
+                cy.get("[data-cy=collection-version-browser-select-3]").rightclick({ force: true });
                 cy.get("[data-cy=context-menu]")
                     .should("contain", "Add to favorites")
                     .and("contain", "Make a copy")