I would like to be able to pass the string “my pass|word” cypress environnement by command line.
Here is the command : npx cypress run –spec .cypresse2eteststemp.cy.ts –env JIRA_PASS=”my pass|word”
How to escape this pipe char ?
When i access my env variable with Cypress.env().JIRA_PASS, the pipe char is changed into a comma.
I’ve tryed differents ways to escape with , ^, ‘, ` but none of them seems to work.
It seems like the same problem occur to when you add a , into the env variable.
Any solution ?
(I need to do this to pass a creds from jenkins to a cypress script running on docker from a jenkins pipeline).
I tryed to search doc, differents method to escape, but none of them work.
nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.