Order a customised biryani from start to finish
Hard100 pts~2 min
- End-to-end flows
- Native prompt
- Modals
- Forms
- Explicit waits
- Mouse interaction
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
Automate the whole FoodRush journey: set Indiranagar as the delivery area, customise a Hyderabadi Chicken Biryani, apply FEAST50, check out with Cash on delivery, wait for the live tracker to reach Delivered, and rate the order 5 stars.
Your task
- 1Open TEST_URL, click #location-button, enter Indiranagar in the prompt and accept it.
- 2Open Biryani Baithak and click “Add Hyderabadi Chicken Biryani”. In #customise-modal choose Full (#size-full), tick Extra raita (#addon-extra-raita), check the button reads “Add item — ₹429” and click it.
- 3Open the cart (#view-cart), apply FEAST50 and assert #bill-grand-total is ₹440, then click #proceed-checkout.
- 4Fill #address-name “Asha Verma”, #address-phone 9876543210 and #address-flat “12, 4th Cross”. Check that #address-area is prefilled with Indiranagar, choose Cash on delivery (#pay-cod) and click #place-order.
- 5On the tracking page, wait without fixed sleeps until #order-status shows “Delivered”.
- 6Click “Rate 5 stars”, optionally type feedback in #feedback, click #submit-rating and assert #rating-thanks mentions 5 stars.
Acceptance criteria
- The order from Biryani Baithak is delivered to Indiranagar.
- The order total is ₹440 and it is paid with Cash on delivery.
- The order is rated 5 stars.
- The test makes at least three assertions along the journey.
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
Selenium WebDriver 4 · Selenium Challenges · FoodRush