steep-motorcycle-71800
08/08/2022, 11:42 AMquick-wolf-87390
08/08/2022, 1:23 PMmelodic-egg-83620
08/08/2022, 1:31 PMprocess.env
to import.meta.env
for all env variables - this is quite a problem because Cypress, when I run cypress open/run
, is trying to transpile my Cypress code, which has imports of files using import.meta.env
. It fails with webpack compilation errors.
Has anyone resolved this issue for themselves?
Note: this is specific to E2E tests not component testing.gray-kilobyte-89541
08/08/2022, 2:08 PMauth
option to your cy.visit
command https://on.cypress.io/visithigh-raincoat-69564
08/08/2022, 2:16 PMcy.wait('@responseForPageB')
before attempting to go to the tablist?fancy-zebra-86068
08/08/2022, 3:39 PMhandsome-lion-1748
08/08/2022, 3:55 PMplain-garden-5374
08/08/2022, 5:16 PMable-analyst-83761
08/08/2022, 7:37 PMgifted-bear-34349
08/08/2022, 8:20 PMbitter-fountain-36713
08/08/2022, 8:25 PMrhythmic-easter-75054
08/08/2022, 10:56 PMmicroscopic-crowd-9149
08/09/2022, 1:32 AMsteep-motorcycle-71800
08/09/2022, 6:09 AMfreezing-piano-2792
08/09/2022, 8:23 AMhandsome-lion-1748
08/09/2022, 9:31 AMmicroscopic-crowd-9149
08/09/2022, 12:06 PMmicroscopic-crowd-9149
08/09/2022, 12:28 PMmelodic-egg-83620
08/09/2022, 1:07 PMalert-machine-64990
08/09/2022, 2:48 PMmicroscopic-crowd-9149
08/09/2022, 3:56 PMmicroscopic-crowd-9149
08/09/2022, 4:32 PMpolite-policeman-65273
08/09/2022, 7:50 PMcy.login({
username: Cypress.env('CYPRESS_USERNAME'),
password: Cypress.env('CYPRESS_PASSWORD'),
})
docker-compose:
environment:
<<: *x-environment
CYPRESS_USERNAME:
CYPRESS_PASSWORD:
It passes locally in the Cypress app but when I run it on Circle CI in a container Cypress is not getting the values from the environment variables set in the projectgray-kilobyte-89541
08/09/2022, 8:10 PMCYPRESS_
https://on.cypress.io/envpolite-policeman-65273
08/09/2022, 9:08 PMpolite-policeman-65273
08/09/2022, 9:51 PMgray-kilobyte-89541
08/09/2022, 10:10 PMsparse-piano-30763
08/10/2022, 9:43 AMgray-kilobyte-89541
08/10/2022, 11:07 AM--ci-build-id
sparse-piano-30763
08/10/2022, 1:35 PM