This repository contains tests for the Curve DApp.
- Install the dependencies:
yarnCypress tests require the necessary application to be started before running.
yarn devTo open Cypress:
yarn cy:open:e2e # Opens Cypress for end-to-end tests
yarn cy:open:component # Opens Cypress for component testsTo run Cypress tests in headless mode:
yarn cy:run:e2e
yarn cy:run:componentTo run a specific Cypress spec (via the cy script):
yarn cy run --e2e --spec cypress/e2e/<path>/<test>.cy.ts
yarn cy run --component --spec cypress/component/<path>/<test>.cy.tsxTests for each DApp are created in the corresponding directory:
tests/cypress/{e2e|component}/{app}
Helper functions can be found in the tests/cypress/support/helpers directory.