From 88f1aeb385795a545cefe26534045466d6195323 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Fri, 16 Apr 2021 17:20:12 -0300 Subject: [PATCH] 17500: Avoids multi-slash URLs usage. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 8dc003fe..2a7f350a 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -36,7 +36,7 @@ Cypress.Commands.add( token = systemToken, auth = false, followRedirect = true) => { return cy.request({ method: method, - url: `${controllerURL}/${path}`, + url: `${controllerURL.replace(/\/+$/, '')}/${path.replace(/^\/+/, '')}`, body: data, qs: auth ? qs : Object.assign({ api_token: token }, qs), auth: auth ? { bearer: `${token}` } : undefined, -- 2.30.2