Rate a delivered order with the star widget
- Mouse hover
- Clicks
- Text areas
- Accessible names
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
Your Biryani Baithak order has been delivered. Hover over the stars to preview a rating, give the order 4 stars with written feedback, and verify the thank-you message.
Your Task
- 1Open TEST_URL and click “Rate your order” (#track-order-link).
- 2Hover over the fifth star (aria-label “Rate 5 stars”) and assert that 5 stars have data-filled="true" and #rating-hint reads “Excellent”.
- 3Click the fourth star (“Rate 4 stars”) and assert #rating-value reads “Your rating: 4 of 5”.
- 4Type “Hot, fresh and well packed” into #feedback and click #submit-rating.
- 5Assert #rating-thanks says you rated Biryani Baithak 4 stars and #rating-feedback shows your text.
Validation Checks
- The order is rated 4 stars.
- The feedback text is shown in the thank-you message.
- The star widget is replaced by the thank-you message.
- The test makes at least two assertions.
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
Cloud Execution & Grading Guide
This Easy Playwright Challenges exercise runs inside TargetQA's managed cloud sandbox using Playwright (TypeScript, JavaScript, Python, Java, C#). Every submission runs inside an isolated headless Chromium container with pre-synced drivers, capturing live console logs, DOM assertions, and a 720p step-by-step video replay.
- Supported stacks: TypeScript (@playwright/test) · JavaScript (@playwright/test) · Python (Playwright + pytest) · Java (Playwright for Java + JUnit 5) · C# (Playwright for .NET + NUnit)
- Zero local setup: Use the pre-declared
TEST_URLvariable so your script targets the live FoodRush sandbox reliably without hardcoding hosts. - Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 4 acceptance checks and earn 30 points.
Playwright · Playwright Challenges Practice Track · FoodRush