Skip to content

hmcts/div-decree-nisi-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divorce Decree Nisi License: MIT

This repo is for the Decree Nisi Frontend and forms part of the online Divorce Application.

Setup

Install dependencies

yarn install

Start application

Then you can use the following commands in different terminal sessions:

docker-compose up redis
yarn mocks
yarn dev

The application will now be running on https://localhost:3000.

When the application is up and running, a new endpoint will be exposed called "/session" where you can view and edit the current session. This is only be available locally and on AAT environment and is useful for debugging and testing.

Testing

yarn test

Run Functional tests locally

  1. create local.yml file in config folder with the contents:
tests:
  functional:
    proxy:
    proxyByPass:
  1. run
yarn test:functional

Run Functional tests locally against AAT

  1. Create remote-config.json file
  2. Copy SCM config
  3. Add "TEST_URL" with AAT url
  4. Run yarn test:functional:remote

-### Running additional tests in the Jenkins PR Pipeline

  1. Add one or more appropriate labels to your PR in GitHub. Valid labels are:
  • enable_full_functional_tests
  • enable_fortify_scan
  1. Trigger a build of your PR in Jenkins. Fortify scans will take place asynchronously as part of the Static Checks/Container Build step.
  • Check the Blue Ocean view for live monitoring, and review the logs once complete for any issues.
  • As Fortify scans execute during the Static Checks/Container Build step, you will need to ensure this is triggered by making a minor change to the PR, such as bumping the chart version.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.