gray-kilobyte-89541
09/08/2022, 5:30 PMselector
variable into the stringlittle-france-10142
09/08/2022, 5:40 PMconfig.ts
. If I hard code the string
MAILOSAUR_API_KEY: <"my-api-key">
my tests work just fine. But I need to put all apikeys and such in a separate cypress.env.json
. Referencing the mailosaur server ID in test code works just fine. When I hard code the apikey string the tests work just fine.
To be super clear this works:
env: {
MAILOSAUR_API_KEY: "<my-api-key>",
},
I want this to work:
env: {
MAILOSAUR_API_KEY: Cypress.env("mailosaurApiKey"),
},
Or this:
env: {
MAILOSAUR_API_KEY: `${Cypress.env("mailosaurApiKey")}`,
},
But the last two do not work.melodic-ocean-83158
09/08/2022, 5:57 PMmelodic-ocean-83158
09/08/2022, 5:59 PMlittle-france-10142
09/08/2022, 5:59 PMe2e.ts
in support?melodic-ocean-83158
09/08/2022, 6:03 PMlittle-france-10142
09/08/2022, 6:07 PM"mailosaurApiKey":
in my cypress.env.json
I just needed to change it to "MAILOSAUR_API_KEY"
little-france-10142
09/08/2022, 6:08 PMbroad-monkey-14727
09/08/2022, 6:23 PMdazzling-nest-77830
09/08/2022, 7:26 PMdazzling-nest-77830
09/08/2022, 7:27 PMdazzling-nest-77830
09/08/2022, 7:28 PMdazzling-nest-77830
09/08/2022, 7:28 PMdazzling-nest-77830
09/08/2022, 7:28 PMdazzling-nest-77830
09/08/2022, 7:29 PMgreen-diamond-44130
09/08/2022, 10:21 PMgray-kilobyte-89541
09/08/2022, 10:30 PMgreen-diamond-44130
09/08/2022, 10:32 PMgray-kilobyte-89541
09/09/2022, 1:23 AMgreen-diamond-44130
09/09/2022, 7:35 AMacceptable-hamburger-48790
09/09/2022, 8:30 AMbulky-account-48526
09/09/2022, 9:20 AMbulky-account-48526
09/09/2022, 9:27 AMgray-kilobyte-89541
09/09/2022, 10:30 AMtall-house-95834
09/09/2022, 10:58 AMnutritious-army-46708
09/09/2022, 2:46 PMgray-kilobyte-89541
09/09/2022, 3:01 PMnutritious-army-46708
09/09/2022, 3:05 PMacceptable-hamburger-48790
09/09/2022, 4:08 PMnutritious-army-46708
09/09/2022, 4:16 PM