This UI testing framework design to test Leapsome case study. Framework design using NodeJS, TypeScript and Cypress.
Folder Structure
- fixtures - Contains external static data that we want to use in the test files.
- e2e - Contains all the page objects and test cases.
- support - It contains all the reusable behavior of the custom commands.
Make sure you have NodeJS installed.
- git clone [email protected]:kasunalwis/leapsome.git
- cd leapsome
- npm install
- To execute all the tests (Both UI and API)
- Make sure test data attribute PR is merged to main
- Make sure both application and data base is up and running on
http://localhost:3000/
npm test
Sample execution Report
In order to view allure report
- Make sure allure commline tool is installed
- Once the execution is completed note that
allure-results
folder is generated in root - In terminal type
allure generate
- To view the report type
allure open