Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 969 Bytes

Cypress.md

File metadata and controls

41 lines (26 loc) · 969 Bytes

Cypress tests

Run all tests

yarn build
yarn integration-test

Run just one test

If you want to run single test you first need to build an app and then serve it

yarn build
serve -s build -p 3000

After that you can specify the test to run with the following command

cypress run --spec cypress/integration/exchange/add-liquidity.test.ts

Remember that if you modify the code under test (e.g. adding id to some element) you need to rebuild the app.

Cypress GUI

Cypress GUI is a nice tool to use if screenshots don't tell enough information.

You open it with

cypress open

It might ask you to update by installing latest GUI version - this will download normal MacOS app which you can open normally without cypress open

Tips and tricks

  • If you are trying to debug something in GUI console be sure to switch to context of iFramed app (Click "top ▼" and then "Your App: pancake-frontend")