Environment Variables not loading up during Playwright tests runs

Okay, so I did received a response from Support via email and applied the following suggestion to pass my env variables into my .env file. And also removing the environment section:

      - run:
          name: Set up environment variables into .env
          command: |
            echo "USERNAME=${USERNAME}" > .env
            echo "PASSWORD=${PASSWORD}" >> .env
            echo "MARVEL_PRIVATE_KEY=${MARVEL_PRIVATE_KEY}" >> .env
            echo "MARVEL_PUBLIC_KEY=${MARVEL_PUBLIC_KEY}" >> .env

With that I’ve managed to make my tests pass

1 Like