Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 889 Bytes

File metadata and controls

48 lines (31 loc) · 889 Bytes

Curve DApp Tests

This repository contains tests for the Curve DApp.

Installation

  1. Install the dependencies:
yarn

Cypress Tests

Cypress tests require the necessary application to be started before running.

yarn dev

To open Cypress:

yarn cy:open:e2e  # Opens Cypress for end-to-end tests
yarn cy:open:component  # Opens Cypress for component tests

To run Cypress tests in headless mode:

yarn cy:run:e2e
yarn cy:run:component

To 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.tsx

Folder Structure

Tests 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.