This project demonstrates end-to-end test automation for the Sauce Demo website using Playwright and TypeScript. It showcases best practices in test automation including Page Object Model pattern, reusable functions, and comprehensive test coverage across different user types.
- Playwright
- TypeScript
- Node.js
sauce_demo_test/
├── Cart page/ # Shopping cart functionality tests
├── Login page/ # Authentication tests
├── Inventory page/ # Product listing tests
├── fixtures/ # Test data
└── pages/ # Page Object Models
- User authentication
- Inventory browsing
- Shopping cart operations
- Adding items to cart
- Removing items from cart
- Cart item verification
- Checkout flow
- Node.js (v14 or higher)
- npm (v6 or higher)
# Clone the repository
git clone https://github.com/Meanfishy00/automation_portfolio.git
cd automation_portfolio
# Install dependencies
npm install
# Install Playwright browsers
npx playwright install# Run all tests
npx playwright test
# Run tests with specific tag
npx playwright test --grep "@smoke"
# Run tests with UI mode
npx playwright test --ui
# Generate and open HTML report
npx playwright test --reporter=html && npx playwright show-report- Helper functions for common actions
- Different user type testing (standard, problem, performance_glitch)
- Performance measurements
- Error handling with screenshots
- Detailed logging
- API testing integration
- CI/CD pipeline setup
- Visual regression testing
- Reporting capabilities
This project is licensed under the MIT License - see the LICENSE file for details.
Isaiah G - GitHub Profile