// 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: {
// 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],
{