Automation testing for Saucedemo web application using Playwright.
This is the list of test cases for this project.
No | Description |
---|---|
1 | User can login with valid credentials |
2 | User cannot login with invalid credentials |
3 | User cannot login with empty credentials |
4 | User cannot login with locked account |
No | Description |
---|---|
1 | User can logout |
No | Description |
---|---|
1 | User can view all products |
2 | User cannot view all products without login |
3 | User can view product details with valid product ID |
4 | User cannot view product details with valid product ID without login |
5 | User cannot view product details with invalid product ID |
No | Description |
---|---|
1 | User can add item to the cart |
2 | User can remove item from the cart |
No | Description |
---|---|
1 | User can perform checkout by filling checkout form |
2 | User cannot perform checkout without filling checkout form |
-
Clone this repository.
-
Install the dependencies.
npm install
- Run the test.
npm test
Use this command to run the test in headed mode. Headed mode means the browser activity is visible when testing.
npm run test_headed
The test result indicates all the key features are implemented correctly. This is the test report generated with Allure.
- This web automation testing use chromium based browser (e.g. Google Chrome).
- The web application that is used in this automation project is Saucedemo Web Application.