QA
Junior~10 minfilter({ hasText })Scoped locatorsbeforeEach

Add two items and verify the cart

App: SwagShop, a practice e-commerce demo store (Saucedemo-style). Login: standard_user, locked_out_user, problem_user, performance_glitch_user / secret_sauce.

Next scenario →

Interview scenario

"Add the Trail Runner Backpack and the Night Ride Bike Light to the cart. I want to see that the badge updates and that the cart page lists exactly those two items."

Acceptance criteria

  1. Log in as standard_user.
  2. Add Trail Runner Backpack and Night Ride Bike Light to the cart.
  3. Assert the cart badge shows 2.
  4. Open the cart and assert both item names are listed and there are exactly 2 rows.

🔒 This lab is part of full access

Unlock the live editor, the scenario checks and the reference solutions in Playwright and Selenium Java for all 25 labs, plus every interview answer. One payment of ₹999, lifetime access.