15768: restored search spec to original Arvados-DCO-1.1-Signed-off-by: Lisa Knox...
[arvados-workbench2.git] / cypress / integration / search.spec.js
index 903caf6722e98bd83d4c2341ffd09280ce443a54..bfcca0c658cb8cdac4f5bc3f4e26ed3eadde05e1 100644 (file)
@@ -305,8 +305,7 @@ describe("Search tests", function () {
                 cy.contains("Copy to clipboard").click();
                 cy.window().then(win =>
                     win.navigator.clipboard.readText().then(text => {
-                        // expect(text).to.equal(`https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
-                        expect(text).to.equal(`${window.location.origin}/collections/${testCollection.uuid}`);
+                        expect(text).to.equal(`https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
                     })
                 );
             });
@@ -314,8 +313,7 @@ describe("Search tests", function () {
             cy.get("[data-cy=search-results]").contains(federatedColName).rightclick();
             cy.get("[data-cy=context-menu]").within(() => {
                 cy.contains("Open in new tab").click();
-                // cy.get("@Open").should("have.been.calledWith", `https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
-                cy.get("@Open").should("have.been.calledWith", `${window.location.origin}/collections/${testCollection.uuid}`);
+                cy.get("@Open").should("have.been.calledWith", `https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
             });
         });
     });