/e2e-deriv-com

End-to-End Testing Suite for Deriv.com

Primary LanguageJavaScriptMIT LicenseMIT

Name

Cypress E2E Testing - End-to-End testing for deriv-com

Description

This repository hosts a suite of End-to-End (E2E) tests, leveraging Cypress, to validate the functionality across different features of the Deriv.com website.

GitHub Actions Status Cypress Version Cypress E2E Tests

Project Structure

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.

Installation

To set up and run the E2E tests, follow these steps:

  1. Clone this repository:

    git clone git@github.com:deriv-com/e2e-deriv-com.git
  2. Navigate to the project directory:

    cd e2e-deriv-com
  3. Install project dependencies:

    npm i
  4. Write e2e tests under cypress/e2e/

  5. To run the available test using Cypress APP UI

    npx cypress open
  6. To run the available test in terminal

    npx cypress run
    

Cypress Configuration

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.

Contributing

Feel free to contribute to this project by submitting issues, pull requests, or adding new E2E tests for different features.

License

This project is licensed under the MIT License.

References

Deriv.com GitHub Repository