Testing
Run E2E Cypress tests
Follow Docker setup to install Creator Studio in Docker
Create
.env.test.local
file inasylum-ui/packages/creator-studio
folder:asylum-ui/packages/creator-studio/.env.test.localREACT_APP_NODE_ENV = test
REACT_APP_MINTER_MNEMONIC = eternal danger cherry radar exit damage slam hip say relief awesome middleinfoREACT_APP_NODE_ENV = test
will spin up the web app intest
mode. The step with connecting to Polkadot{.js} extension will be skipped, as it's not possible to install and properly test this extension within Cypress test environment.The seed phrase
REACT_APP_MINTER_MNEMONIC
will be automatically set toconnection-library
, when user clicksconnect wallet
.Navigate to root
asylum-ui
folderyarn docker:test:up
cautionyarn docker:test:up
command will start container with different ui image configs. You have to delete previous container, which you spun up withyarn docker:up
yarn cypress:open
Select E2E Testing -> Chrome -> Start E2E testing in Chrome
Select spec you want to run