Customise a pizza and verify the live price
Medium50 pts~2 min
- Modal dialogs
- Radio buttons
- Checkboxes
- Live-updating values
Practice app · FoodRush
A food-delivery app: set your delivery area through a native prompt, filter restaurants by veg-only, cuisine and search, sort them, customise dishes in a modal, manage a cart with a coupon, check out and follow a live order tracker before rating the meal.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Open Slice Theory, customise a Farmhouse Pizza in its dialog (Medium size with Extra cheese and Jalapeños), check the live price, and add it to the cart.
Your task
- 1Open TEST_URL and open the Slice Theory restaurant card ([data-restaurant-id="slice-theory"]).
- 2Click “Add Farmhouse Pizza” and wait for the dialog #customise-modal.
- 3Select the Medium size (#size-medium) and tick #addon-extra-cheese and #addon-jalapenos.
- 4Assert the add button #add-customised reads “Add item — ₹599”, then click it.
- 5Assert the dialog closed, #cart-notice mentions “Farmhouse Pizza (Medium” and #cart-bar-summary shows 1 item for ₹599.
Acceptance criteria
- The customisation dialog is closed.
- The cart notice names the Medium Farmhouse Pizza.
- The cart bar shows 1 item worth ₹599.
- The test makes at least two assertions, including the live price.
Fixtures
- Delivery area
- Any area name, e.g. Indiranagar
- Coupon
- FEAST50 (₹50 off item totals of ₹299 and above)
- Delivery fee
- ₹40 per order
- Taxes
- 5% GST & restaurant charges on the item total, rounded to the nearest rupee
- Seeded cart
- Dosa Darbar: Masala Dosa ×1 (₹120), Filter Coffee ×2 (₹60), Medu Vada ×1 (₹80)
- Checkout details
- Asha Verma · 9876543210 · 12, 4th Cross
- Tracking
- Order placed → Preparing → Out for delivery → Delivered, about 1.5 s per step
Playwright · Playwright Challenges · FoodRush