This repository contains End-to-End (E2E) tests using Cypress for various features of the Deriv website in a staging environment.
The project structure includes the following files and directories:
cypress.config.js
: Cypress configuration file.package.json
: Lists project dependencies, including Cypress.cypress/support/e2e.js
: Support file for common configurations and custom commands.cypress/e2e/
: Directory containing E2E test files for different features.
To set up and run the E2E tests, follow these steps:
-
Clone this repository:
git clone [email protected]:deriv-com/e2e-deriv-com.git
-
Navigate to the project directory:
cd e2e-deriv-com
-
Install project dependencies:
npm i
-
Write e2e tests under
cypress/e2e/
In cypress.config.js
, the Cypress configuration includes settings such as:
baseUrl
: The base URL for the staging environment.supportFile
: The support file that contains common configurations and custom commands.env
: Environment variables that can be used in your tests.
Make sure to adapt these settings according to your project's needs.
Feel free to contribute to this project by submitting issues, pull requests, or adding new E2E tests for different features.
This project is licensed under the MIT License.