Skip to content

IsmaelMousa/playing-with-playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Testing with Playwright

What's Covered

  • Register: creating a new user account
  • 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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors