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}`);
})
);
});
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}`);
});
});
});