End to End Frontend tests
The code used for the E2E tests is a set of automated tests written in JavaScript using the Mocha testing framework and the Chai assertion library.
Testing Frameworks and Tools
Framework Details
Mocha as the test runner
Chai for assertions
Puppeteer as the library for E2E
Minimist for environment parameterization
Version Information
Chai Version:
4.3.6
Mocha Version:
10.7.3
Puppeteer:
23.3.1
Minimist:
1.2.8
Test Organization and Structure
Directory Structure
root/tests/name.test.js
Naming Conventions
The tests are named after their purpose followed by a .test extension and .js. An example for login is login.test.js
Prerequisites
Node.js installed on your machine.
npm (Node Package Manager) available.
Test Execution Instructions
Running Tests Locally: Step-by-step instructions on how to execute the tests locally, including any necessary commands.
npm install npm test
Running Tests on Staging:
mocha '.\test\' --env=staging
Running Tests on Production:
mocha '.\test\' --env=production
Continuous Integration (CI) Pipeline: If applicable, describe how tests are integrated into the CI pipeline and any configurations needed.