Cypress tests

Run all tests

pnpm build
pnpm integration-test

Run just one test

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

pnpm 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: lucia-frontend")