/
End to End Frontend tests

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

Screenshot 2024-10-09 122651.png
ChaiE2E is the root directory

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.

E2E Test Scenarios

Related content

E2E Test Scenarios
E2E Test Scenarios
More like this
E2E Multiple File Upload
E2E Multiple File Upload
More like this
Unit Frontend Component Tests
Unit Frontend Component Tests
More like this
Accelerate System App Visit and Interaction test case
Accelerate System App Visit and Interaction test case
More like this
Submit Prompt, Verify in My Results, and Delete it
Submit Prompt, Verify in My Results, and Delete it
More like this
Submit Prompt, and Verify in My Results test case
Submit Prompt, and Verify in My Results test case
More like this