X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f568b58370bfcc6b5c9035f57bd9b85f1f040074..9b4aa20f018b2c3daa1aa8dce2d5110ed1534cc2:/cypress/support/commands.js diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 8dc003fee1..2a7f350ae9 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,