This repository contains a suite of Cucumber tests designed to validate the contents of processed forms given as Word Documents.
To get started with running the tests, follow these steps:
-
Install Dependencies:
npm install
-
Execute Tests:
npm run test-cucumber
The form to be processed consists of areas text should replaced, optionally inserted or removed, and checkboxes that must be checked.
- test/resources/data: Includes sample schema and inputs to expect.
- features/step_definitions/steps.js: Includes When condition to mock document being processed by external system.
- test/resources/form: Includes sample template forms for Given condition.
- test/resources/result: Includes sample output to expect checked by Then conditions.