How to Test a Food Delivery App: 30 Test Cases from Order to Doorstep
Every food delivery app has the same promise: you tap a button, food shows up at your door. Testing that promise requires covering everything between those two moments search, browse, cart, coupons, payments, tracking, delivery confirmation, ratings, and the dozen things that can go wrong at each step.
This guide provides 30 ready-to-use test cases covering every critical flow in a food delivery app, from opening the app to the food arriving. Each test case is written two ways: the traditional Appium approach (selectors, waits, assertions) and the Vision AI approach (plain English, no code). By the end, you'll have a complete QA checklist you can execute today.
These test cases are based on patterns from production delivery apps processing over a million orders daily in India, including platforms tested with Drizz Vision AI.
For the broader delivery app testing strategy, see our Why Delivery Apps Are the Hardest to Test guide.
How to Read These Test Cases
Each test case is shown in two formats:
Appium (traditional): Python code using selectors, explicit waits, and element assertions. Requires Appium server, platform SDKs, and element inspection setup.
Drizz (Vision AI): Plain English steps that describe what the user sees and does. No selectors, no code, no setup beyond connecting a device.
Section 1: App Launch and Location (Test Cases 1-5)
TC-01: App launches and home screen loads
Appium:
driver.launch_app()
WebDriverWait(driver, 15).until(
EC.presence_of_element_located((AppiumBy.ID, "com.app:id/home_screen")))
assert driver.find_element(AppiumBy.ID, "com.app:id/restaurant_list").is_displayed()
Drizz:
Launch the app
Verify home screen is visible
Verify restaurant listings are displayed
TC-02: Location permission prompt appears and is accepted
Appium:
WebDriverWait(driver, 10).until(
EC.presence_of_element_located((AppiumBy.ID, "com.android.permissioncontroller:id/permission_allow_foreground_only_button")))
driver.find_element(AppiumBy.ID, "com.android.permissioncontroller:id/permission_allow_foreground_only_button").click()
Drizz:
Verify location permission dialog appears
Tap "Allow only while using the app"
Verify home screen loads with restaurant listings
TC-03: Change delivery location manually
Appium:
driver.find_element(AppiumBy.ID, "com.app:id/location_bar").click()
driver.find_element(AppiumBy.ID, "com.app:id/search_location").send_keys("Koramangala")
WebDriverWait(driver, 5).until(
EC.presence_of_element_located((AppiumBy.XPATH, "//android.widget.TextView[contains(@text, 'Koramangala')]")))
driver.find_element(AppiumBy.XPATH, "//android.widget.TextView[contains(@text, 'Koramangala')]").click()
Drizz:
Tap the delivery location bar
Type "Koramangala" in location search
Tap "Koramangala" from suggestions
Verify restaurant listings update
TC-04: Restaurants update when location changes
Appium:
# Store current first restaurant name
first_restaurant_before = driver.find_element(AppiumBy.XPATH,
"//android.widget.RecyclerView/android.widget.FrameLayout[1]//android.widget.TextView[@resource-id='com.app:id/restaurant_name']").text
# Change location
change_location("Whitefield")
first_restaurant_after = driver.find_element(AppiumBy.XPATH,
"//android.widget.RecyclerView/android.widget.FrameLayout[1]//android.widget.TextView[@resource-id='com.app:id/restaurant_name']").text
assert first_restaurant_before != first_restaurant_after
Drizz:
Note the first restaurant name on screen
Change location to "Whitefield"
Verify restaurant listings have changed
Verify a different restaurant appears first
TC-05: "Not serviceable" message for unsupported location
Appium:
change_location("Remote Village")
WebDriverWait(driver, 10).until(
EC.presence_of_element_located((AppiumBy.ID, "com.app:id/not_serviceable_text")))
assert "not available" in driver.find_element(AppiumBy.ID, "com.app:id/not_serviceable_text").text.lower()
Drizz
Change location to an unsupported area
Verify "not available in your area" message is displayed
Section 2: Search and Browse (Test Cases 6-10)
TC-06: Search for a cuisine and verify results
Drizz:
Tap the search bar
Type "Biryani"
Verify search results show restaurants with "Biryani" in name or cuisine tags
TC-07: Filter by rating (4.0+ stars)
Drizz:
Tap "Filters"
Select "Rating 4.0+"
Tap "Apply"
Verify all displayed restaurants show 4.0 or higher rating
TC-08: Sort by delivery time
Drizz:
Tap "Sort"
Select "Delivery Time"
Verify restaurants are listed with shortest delivery time first
TC-09: Browse a restaurant menu
Drizz:
Tap on the first restaurant card
Verify restaurant menu screen loads
Verify menu categories are visible
Verify at least one menu item shows name and price
TC-10: Restaurant closed message displays correctly
Drizz:
Navigate to a restaurant marked as closed
Verify "Currently closed" or schedule information is displayed
Verify "Add to Cart" button is disabled or not visible
Section 3: Cart Management (Test Cases 11-16)
TC-11: Add item to cart
Appium:
driver.find_element(AppiumBy.XPATH,
"//android.widget.TextView[@text='Chicken Biryani']/following-sibling::android.widget.Button[@resource-id='com.app:id/add_btn']").click()
WebDriverWait(driver, 5).until(
EC.presence_of_element_located((AppiumBy.ID, "com.app:id/cart_badge")))
assert driver.find_element(AppiumBy.ID, "com.app:id/cart_badge").text == "1"
Drizz:
Tap "Add" next to the first menu item
Verify cart icon shows item count of 1
TC-12: Increase item quantity
Drizz:
Tap "+" on the added item
Verify quantity shows 2
Verify cart total updates
TC-13: Remove item from cart
Drizz:
Tap "-" until item quantity reaches 0
Verify item is removed from cart
Verify cart icon shows empty or disappea
TC-14: Add items from different restaurants (multi-restaurant warning)
Drizz:
Add an item from Restaurant A
Navigate back and open Restaurant B
Tap "Add" on an item from Restaurant B
Verify "Replace cart" or "Start new cart" dialog appears
TC-15: Cart persists after app restart
Drizz:
Add 2 items to cart
Close the app completely
Reopen the app
Verify cart still shows 2 items with correct names and prices
TC-16: Item unavailable after adding to cart
Drizz:
Add an item to cart
Navigate to checkout
Verify if any "item unavailable" message appears
Verify cart total recalculates if items are removed
Section 4: Checkout and Payment (Test Cases 17-24)
TC-17: Checkout screen displays order summary correctly
Appium:
driver.find_element(AppiumBy.ID, "com.app:id/checkout_btn").click()
WebDriverWait(driver, 10).until(
EC.presence_of_element_located((AppiumBy.ID, "com.app:id/order_summary")))
assert driver.find_element(AppiumBy.ID, "com.app:id/item_total").is_displayed()
assert driver.find_element(AppiumBy.ID, "com.app:id/delivery_fee").is_displayed()
assert driver.find_element(AppiumBy.ID, "com.app:id/grand_total").is_displayed()
Drizz:
Tap "Checkout" or "View Cart"
Verify order summary screen shows item names and quantities
Verify delivery fee is displayed
Verify total amount is displayed
TC-18: Apply coupon code successfully
Drizz:
Tap "Apply Coupon" on checkout screen
Type "FLAT50" in coupon field
Tap "Apply"
Verify discount is reflected in the order total
Verify coupon tag shows "FLAT50 applied"
TC-19: Apply invalid coupon code
Drizz:
Tap "Apply Coupon"
Type "INVALIDCODE" in coupon field
Tap "Apply"
Verify error message "Invalid coupon" or "Coupon not applicable" appears
Verify total remains unchanged
TC-20: Pay with UPI
Drizz:
On checkout screen, select "UPI" as payment method
Verify UPI app selection or UPI ID input appears
Complete payment
Verify "Order Confirmed" screen appears
TC-21: Pay with credit/debit card
Select "Credit / Debit Card" as payment method
Verify card input form appears
Enter test card details
Tap "Pay"
Verify order confirmation screen appears
TC-22: Pay with Cash on Delivery
Drizz:
Select "Cash on Delivery" as payment method
Tap "Place Order"
Verify order confirmation screen appears
Verify order status shows "COD" payment method
TC-23: Pay with wallet (partial + UPI)
Drizz:
Verify wallet balance is displayed on checkout
Toggle "Use wallet balance" on
Verify remaining amount to pay is calculated
Select "UPI" for the remaining amount
Complete payment
Verify order confirmed