You need to set up your development environment before you can do anything.
Install Node.js and NPM
- on OSX use homebrew
brew install node - on Windows use chocolatey
choco install nodejs
Install yarn globally
npm install yarn -gThen install the dependencies with
yarn installThen copy the .env.example to .env and replace the setting in the file with your settings
cp .env.example .envThis repository uses the testcafe library to perform e2e tests.
You can run all tests by
npm testor just run a single file by
npm run test:single <path-to-file>
npm run test:single tests/test-case.spec.tsor run all test in live (watch) mode
npm run liveAll test are located in tests/. See example estate.ts.
There is also a helper utility helper.ts which can be imported and provides some help.
The helper.ts can also be extended.
When you work on a particular test, just add the .only call for it:
test.only('Current test', async t => {});
Once you are done with it and ready to run the whole suite, just remove the .only directive and save the file.
Here you can find help about element selection (e.g. get text)
Here you can find help about actions for elements (e.g. clicks)
Here you can find help about Aurelia specific stuff
To run the all test headless use npm run ci.
Additional information about CI integrations can be found here.
Here a list of additional resources and useful plugins.