We use the Cypress JS testing framework to run E2E tests for this application.
/test folder in this solution, you can run the following commands to simplify testing the application.
npm run hosthosts a version of OC running in production mode (faster).
npm run buildbuilds the application.
npm run cleanDeletes
npm run testhosts the site then runs cypress tests.
npm run test:cleanDeletes
/src/StatCan.OrchardCore.Cms.Web/App_Data, hosts the site, run cypress tests.
npm run test:clean-buildcleans
App_Data, builds the site, hosts the site and runs cypress tests. This is recommended.
npm run cypressopens cypress dashboard.
npm run cypress:runruns the cypress tests. Assumes a pre-running instance.
Last update: October 2, 2020