LPA Development Process
We have prettier and linting configured for the LPA frontend code and our
letters. To setup the hooks install https://pre-commit.com/ (on Mac: brew
install pre-commit
), then run pre-commit install
.
Developing
Makefile: make lpa-dev
This will rebuild the frontend LPA application.
Alternatively, you can run Sirius with make dev-up FEATURES='lpa'
, then
rebuild front-end/lpa
using yarn build:dev
, or yarn watch
to
automatically rebuild whenever you make any changes to the frontend.
Karma Tests
Makefile: make lpa-karma
Running this command will execute the karma unit tests for the LPA application.
Protractor Tests
Makefile: make lpa-protractor-local
Makefile: make lpa-protractor-local LPA_TAG="@donor"
Running this command will run the LPA protractor tests with a single webdriver instance and the default set of test tags (“@core”).
The second version will run only the LPA protractor scenarios tagged with “@donor”.
Protractor tests run this way on Macs can be slow. You may have better luck by
running Sirius locally (with make dev-up
), and then doing
$ cd front-end/ui-tests
$ yarn e2e-tag '@donor'