These tests use Webdriver.io.
Because sync mode is being phased out, you should usually await
commands and declares fns async
.
See existing steps
and their supporting files for examples.
Make sure you have the latest Yarn and Node installed. In some OS cases, when running the test for the first time, you may be prompted with further instructions to get this set up correctly, in which case follow the detailed instructions for your OS here
yarn install
cp .env.dist .env
- Populate needed variables in
.env
Make sure you have the correct Chromedriver
version for your Chrome installed.
yarn test:local
These are configured and scheduled with CircleCI.
The runner is now TestingBot where we have an open source plan. We are running against recent stable Chrome and Edge versions, once per hour.
We may want to add tests for the charity login page. We had some dead code relating to this, which may or may not be useful for reference - see commit 6d1477f which removed CharityPortalLoginPage.