Life Event Verification User Interface
nvm use
make all
To execute the linter run:
npm run lint
npm run start:mockapi
npm start
npm run start:mockapi
npm run dev
npm run start:mockapi
npm run dev
npm run cypress
Due to a re-platforming of the service, the location of Docker images has changed to Amazon ECR, which is not publicly available.
For local development, images that can be used locally have been left in the codebase but commented out. To run, they will need to temporarily replace the ERC images during testing.
Note that images like lev-api will not be up-to-date in quay. For running ui tests this should be fine but be aware that the current api behaviour may be different.
The docker images also have some proxies that are used in the CI/CD pipeline - these will also need to be removed for local building of images.
docker compose up --build
docker compose -f docker-compose-e2e.yml up --build
Whether running locally, or Docker, mock data is obtained from lev-api/mock.
Tests can be run locally against an environment. Note that the user used must have the no-mfa role and you must be connected to the EBSA VPN.
docker build -t lev-web-ui-e2e -f Dockerfile-e2e .
docker run --name lev-web-ui-e2e -e 'SMOKE_TEST=true' -e 'ENV=ENVIROMENT' -e 'KEYCLOAK_URL=KC_ENV_URL' -e 'TEST_URL=SERVICE_URL' -e 'TEST_USERNAME=USERNAME' -e 'TEST_PASSWORD=PASSWORD' --net host lev-web-ui-e2e