KBV HMRC Credential Issuer Frontend Tests is a test suite designed to run against the webserver in the root of this repository.
The following quickstart process details how to install and run the browser tests against an existing frontend website..
- Install node dependencies:
npm install
Create a copy of the example environment variable file and add values for the keys:
cp .env.example .env
Set the environment variables accordingly.
Run imposter from the ../imposter directory - see the README.md file there for details.
Start the web server by running npm run start in the root directory
npm run test:browser
Set CHROMIUM_HEADLESS to false to see the user flow in a browser.
The browser tests are written as Cucumber Gherkin Features with the cucumber-js test runner integrated with Playwright