This project provide simple ui tests for the website mentioned in the documentation which was implementated using Nightwatch JS along side with the api tests.
The implementation of this project can be broken down into more descriptive points where:
- The Ui tests were focused on two main parts as for testing the
- Home Page
- Searched for “dress” and verified the search results.
- Contact Us Page
- Tested all the possible combinations for contact us form whether it leads to valid or invalid submission.
- Home Page
- The API tests were focused on testing hitting all the routes mentioned here with valid/invalid body, valid/invalid authorization.
-
UI Tests and Results:
-
API Tests and Results:
-
Screenshots for the provided test results can also be found here
- Nightwatch js
- Supertest
- JEST
- I have integrated my project with Circle CI, and included the badge as well.
- Note all the api tests can be seen actually being executed, however the ui tests the ci fail to start the test chromedriver.