Merge branch '21597-cypress-reply-fix' into main. Closes #21597
[arvados.git] / services / workbench2 / cypress / e2e / search.cy.js
index 1bf2b5c3efb4b83a8bdd8324f751ffb67d7b53c5..ba9077ac2065a78c9a37ecf2a0ed73007112fde9 100644 (file)
@@ -169,7 +169,7 @@ describe("Search tests", function () {
 
         // 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: {
@@ -249,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],
                         {