From 04af9f8d5ec001805f4e8f4e208ee8bf7be5f8fa Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Wed, 4 Oct 2023 13:42:27 -0400 Subject: [PATCH 1/1] 15768: restored search spec to original Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- cypress/integration/search.spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 903caf67..bfcca0c6 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -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}`); }); }); }); -- 2.30.2