green-book-63455
06/20/2022, 9:28 AMgreen-book-63455
06/20/2022, 9:30 AMorange-dog-93152
06/20/2022, 9:44 AMsilly-journalist-41771
06/20/2022, 11:20 AMgray-kilobyte-89541
06/20/2022, 11:58 AMgray-kilobyte-89541
06/20/2022, 11:58 AMorange-dog-93152
06/20/2022, 12:07 PMfresh-doctor-14925
06/20/2022, 12:46 PMsilly-journalist-41771
06/20/2022, 12:47 PMpolite-alarm-78904
06/20/2022, 1:44 PMcy:open:admin: cypress open --env configFile=$CUSTOMER ,admin=true
If I run CUSTOMER=myCustomer npm run cy:run:admin
the configFile variable is set correctly, but the admin variable is ignored.
What am I doing wrong here?gray-kilobyte-89541
06/20/2022, 1:49 PMfresh-doctor-14925
06/20/2022, 1:49 PMadmin
available. Some options here: https://docs.cypress.io/guides/guides/environment-variables
Though I see you're passing --env
already. Couple of thoughts:
1) could it be that you have a space after $CUSTOMER
?, instead of after the comma?
2) Otherwise, I'd want to see how you're accessing admin
orange-dog-93152
06/20/2022, 1:51 PMpolite-alarm-78904
06/20/2022, 1:54 PMgray-kilobyte-89541
06/20/2022, 1:56 PMorange-dog-93152
06/20/2022, 1:59 PMclean-australia-93957
06/20/2022, 2:11 PM${app}-${state}
,
78 | key: Cypress.env("CLIENT_SECRET"),
79 | }).then((hash) => {gray-kilobyte-89541
06/20/2022, 2:16 PMgray-kilobyte-89541
06/20/2022, 2:17 PMbetter-pharmacist-8890
06/20/2022, 3:26 PMaloof-beach-98822
06/21/2022, 12:51 AMbitter-fountain-36713
06/21/2022, 2:20 AMadorable-stone-42197
06/21/2022, 9:04 AMadorable-stone-42197
06/21/2022, 9:04 AMadorable-stone-42197
06/21/2022, 9:05 AMfresh-doctor-14925
06/21/2022, 9:51 AMcy.session()
API. I think that will give you what you're looking forswift-kitchen-62493
06/21/2022, 12:52 PMgray-kilobyte-89541
06/21/2022, 1:03 PMaloof-beach-98822
06/21/2022, 8:40 PMgray-kilobyte-89541
06/21/2022, 8:45 PM