Skip to main content

E2E Testing

End-to-end testing is carried out by Cypress, and executed against a dedicated firebase project (different to development and staging).

You will notice the data in test is completely different to what you see when developing. In addition, the testing app starts at the port localhost:3456 which all tests are run against.

The tests are not comprehensive, but are slowly being built over time - particularly when bugs are noticed. Therefore if you identify a bug, before fixing it is recommended to add a test so that the bug is less likely to resurface in the future.

Getting Started

yarn workspace oa-cypress install
yarn workspace oa-cypress start

(or shorthand yarn test)

Data Seeding

Will be automatically deleted after tests have completed running

CI testing

Tests are automatically run on every pull request, and can be viewed on the cypress dashboard. A link to the specific test run will be populated into the PR, or publicly viewable at: https://dashboard.cypress.io/projects/4s5zgo/runs

Browser testing

Currently testing is carried out against chrome(stable) and firefox(latest) browsers. We are not able to support any additional browsers (e.g. safari) via ci as they are not currently supported by cypress. If this changes in the future then it would be good to add. See discussion around this here: https://github.com/ONEARMY/community-platform/issues/611