1Business context
RideGo is a cab-hailing app. It prices trips by distance and time, applies promos with caps, tracks the ride through live stages and enforces cancellation fees after the driver arrives.
Pickup and drop autocomplete with swap, fares per vehicle computed from distance, a promo, then a live ride that moves from searching to completed — with OTP, a cancel fee rule, rating and tip.
2Users & roles
- 👤 Rider — books, tracks, cancels, rates and tips
3Modules & screens
| Screen | Route | What it does |
|---|---|---|
| Book a ride | /apps/ride | Pickup/drop autocomplete, swap, vehicle types, fares, promo, payment |
| Live trip | /apps/ride/trip/[id] | Status stages, moving car on the map, cancel, rating and tip |
| My trips | /apps/ride/trips | Past trips |
4Main end-to-end journey
Book, ride and rate
- Pick Tech Park → Airport
- Choose Mini and apply FIRSTRIDE
- Pay by UPI and book
- Wait through Driver assigned, Driver arrived, On trip, Completed
- Rate 5 stars and tip ₹20
Expected: Distance 24.7 km, payable ₹432, and trip total ₹452 after the tip
5Business rules & validations
- AutocompleteBeginner
Type in pickup-input / drop-input and choose *-option-<place>; the same place can't be both.
- Swap & shortcutBeginner
use-home fills pickup; swap-locations exchanges both inputs and redraws ride-map.
- Fare mathsIntermediate
fare-<vehicle> = base + per-km × distance + per-min × time; check against trip-distance.
- Promo capIntermediate
FIRSTRIDE halves the fare but caps at ₹75 — fare-payable reflects the cap.
- Live statusAdvanced
ride-status walks through all five stages on a timer — chain text waits, don't sleep.
- Cancel rulesAdvanced
Cancel before arrival is free; after “Driver arrived” cancel-fee-warning shows ₹30 and cancel-fee records it.
- Moving markerIntermediate
During the trip, map-car moves along the route (SVG text element).
- Rate & tipBeginner
After completion pick rate-driver-* and tip-*; trip-total includes the tip.
6Test data & credentials
- URL
- /apps/ride
- Promo
- FIRSTRIDE (50%, max ₹75)
- Stages
- 2s · 5s · 8s · 11s
- Cancel fee
- ₹30 after arrival
7Glossary
- FIRSTRIDE
- 50% off, capped at ₹75
- Cancellation fee
- ₹30 once the driver has arrived
- Ride stages
- Searching → Driver assigned → Driver arrived → On trip → Completed (2 / 5 / 8 / 11 s)
8Watch-outs for automation
- ⚠️Chain text waits for each ride stage — don't sleep
- ⚠️Pickup and drop can't be the same place
- ⚠️Fare = base + per-km × distance + per-minute × time
9Suggested test strategy
1 · Smoke
2
P1 positive and end-to-end cases — run on every build.
2 · Regression
15
All cases, incl. 4 negative and 3 edge — run before release.
3 · End-to-end
3
Full user journeys — run nightly.
Start with these smoke cases
- RIDEGO-01 — Book and complete a ride
- RIDEGO-E2E-01 — Book, ride and rate