X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c272d74463c393c967f0bdc3a9f3de626f3e5e7c..9d1ff3299a57d0e820bf7975f0f3e6080b22f0a5:/services/workbench2/cypress/e2e/search.cy.js diff --git a/services/workbench2/cypress/e2e/search.cy.js b/services/workbench2/cypress/e2e/search.cy.js index d8aa35d3d2..ba9077ac20 100644 --- a/services/workbench2/cypress/e2e/search.cy.js +++ b/services/workbench2/cypress/e2e/search.cy.js @@ -23,11 +23,6 @@ describe("Search tests", function () { }); }); - beforeEach(function () { - cy.clearCookies(); - cy.clearLocalStorage(); - }); - it("can search for old collection versions", function () { const colName = `Versioned Collection ${Math.floor(Math.random() * Math.floor(999999))}`; let colUuid = ""; @@ -165,14 +160,16 @@ describe("Search tests", function () { }); }); - it("shows search context menu", function () { + // The following test is enabled on Electron only, as Chromium and Firefox + // require permissions to access the clipboard. + it("shows search context menu", { browser: 'electron' } , function () { const colName = `Home Collection ${Math.floor(Math.random() * Math.floor(999999))}`; const federatedColName = `Federated Collection ${Math.floor(Math.random() * Math.floor(999999))}`; const federatedColUuid = "xxxxx-4zz18-000000000000000"; // Intercept config to insert remote cluster cy.intercept({ method: "GET", hostname: "127.0.0.1", url: "**/arvados/v1/config?nocache=*" }, req => { - req.reply(res => { + req.on('response', res => { res.body.RemoteClusters = { "*": res.body.RemoteClusters["*"], xxxxx: { @@ -252,7 +249,7 @@ describe("Search tests", function () { // Intercept search results to add federated result cy.intercept({ method: "GET", url: "**/arvados/v1/groups/contents?*" }, req => { - req.reply(res => { + req.on('response', res => { res.body.items = [ res.body.items[0], {