This is an end-to-end automated test suite for SauceDemo using WebdriverIO, JavaScript, and Allure Reports.
Language: JavaScript
Framework: WebdriverIO
Browser: Chrome (via Chromedriver)
Reporting: Allure
- Try to log in with username:
locked_out_userand password:secret_sauce - Verify the displayed error message matches the expected login failure notice
- Log in with username:
standard_userand password:secret_sauce - Reset the App State from the hamburger menu
- Add any three items to the cart
- Proceed through the checkout process
- Verify:
- All selected product names appear correctly
- The total price is accurate
- Finish the purchase
- Verify the successful order message
- Reset App State again and log out
- Log in with username:
performance_glitch_userand password:secret_sauce - Reset the App State
- Apply filter: Name (Z to A)
- Add the first item to the cart
- Navigate to checkout page
- Verify:
- Product name(s) match the selected item
- Total price is correct
- Complete the purchase
- Check the order success message
- Reset App State again and log out
Md. Firoz Hasan
GitHub: Firoz04
Thank You!