X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/df9d9314d55ee5c7119a0b5b59be2c46c1f26390..88f1aeb385795a545cefe26534045466d6195323:/cypress/support/commands.js 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,