This repository contains e2e test(s) for the mailfence.com website using the Cypress testing framework.
Before running the tests, make sure you have the following software installed:
To install the necessary dependencies, run the following command in your terminal:
cd /project/path
npm install
Sensitive data, such as the email and password, can be passed as environment variables when running the tests. This helps to keep the credentials secure. To open Cypress with sensitive data, use the following command:
npx cypress open --env email=[email],password=[password]
Replace email with your actual email address and password with your password.
To run the tests, use the following command:
npx cypress run --env email=[email],password=[password]
Replace email with your actual email address and password with your password.
Build the docker image with:
docker build -t my-cypress-tests .
Run the Docker container with environment variables:
docker run -it my-cypress-tests npx cypress run --env email=[email],password=[password]
Replace email with your actual email address and password with your password.
The test cases are located in the cypress/e2e directory.
Feedback is welcome!