IntermediatePW-ECOM-00225 minutesPlaywright

Add a laptop under ₹50,000 to the cart

A shopper needs a laptop within a strict budget.

  • ecommerce
  • filters
  • cart

Objective

What to automate

Search for laptop, set maximum price to ₹50,000, add the matching item, and verify cart quantity one.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-STORE-001.

Test data

  • query: laptop
  • maxPrice: 50000
  • quantity: 1

Expected result

Arka 14 Laptop is added and the cart shows quantity 1.

Progressive hints

Hint 1

Use the catalogue search and maximum price controls.

Hint 2

Scope Add to cart to the laptop card.

Hint 3

Assert the cart row quantity rather than only the header count.

I’ve tried it — show solution
  1. Use the catalogue search and maximum price controls.
  2. Scope Add to cart to the laptop card.
  3. Assert the cart row quantity rather than only the header count.