Database testing · Orders table
Order 302 is “delivered” but has no delivery date
P3 · MinorIntermediateOrders table
Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.
The clue
Does each status have the data it needs?
Steps to reproduce
- Mark an order delivered from the courier update
- Query the orders table
Expected result
delivered_at is set whenever status is delivered
Actual result
Order 302: status delivered, delivered_at NULL
Why it matters
This is a minor (P3) bug. It does not stop anyone, but it looks careless and makes people trust the product less. It is usually fixed in a normal sprint.
Testing tip
For each status, list which columns must be filled, then query for rows that break the rule.
How to find bugs like this
Database bugs show up when you look at the tables: duplicate rows, joins that double totals, deleted users still active, values cut short or saved in the wrong type. When you test, try these checks:
- Run the query yourself and count the rows.
- Look for duplicates that differ only in case or spaces.
- Check deleted and archived records.
- Compare stored values with what the user typed.