Frontend testing · Cart
Cart accepts quantity -1 and lowers the total
P2 · MajorIntermediateCart
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
Can you buy minus one of something?
Steps to reproduce
- Add a notebook to the cart
- Tap − until the quantity goes below 1
Expected result
Quantity stops at 1, or the app offers to remove the item
Actual result
Quantity shows -1 with a price of −₹149
Why it matters
This is a major (P2) bug. The feature still works in part, but users get wrong information or a broken step, and many will notice. It should be fixed before or soon after release.
Testing tip
Try zero, negative and very large quantities. Business rules live at the edges.
How to find bugs like this
Frontend bugs are the ones users see on the screen: wrong totals, labels that do not match, broken layouts, dates that cannot be right and buttons that say the wrong thing. When you test, try these checks:
- Add up every total and compare numbers that should match.
- Read every label, plural and date out loud.
- Try the smallest and largest values a field allows.
- Check the screen on a small phone and with long text.