You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login: signing in with valid and invalid credentials
Add to Cart: adding products and verifying cart updates
Remove from Cart: removing items and checking cart reflects changes
Sort: sorting products A to Z and by price high to low
Usage
# Install dependencies and browsers
npx playwright install
# Run all tests
npx playwright test# Run on a specific browser
npx playwright test --project=chromium
# View the test report
npx playwright show-report
Notes
Login runs once and the session is reused across tests so you are not logging in repeatedly
Test credentials and base URL are stored in config/.env
Screenshots are captured only on failure
Traces are recorded on first retry to help with debugging
About
Playwright automation suite testing core e-commerce flows across multiple browsers