Backend testing · Audit log
Two edits at once: Asha’s +2 is lost and stock ends at 7 instead of 9
P2 · MajorExperiencedAudit log
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
Work out the stock step by step.
Steps to reproduce
- Open the same product’s stock form as two admins
- Save +2 in one and −3 in the other
Expected result
10 + 2 − 3 = 9, or the second save is blocked because the data changed
Actual result
Ravi’s save overwrote Asha’s, so stock is 7
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
Test two people editing the same record. Without version checks or locking, the last save silently wins.
How to find bugs like this
Backend bugs hide behind a screen that looks fine: jobs that run twice, retries that never stop, stale caches, reports that say success when nothing happened. When you test, try these checks:
- Check that each action happens exactly once.
- Look at logs, outboxes and job history, not just the screen.
- Test what happens on a slow network, a retry and a double click.
- Compare cached values with the source of truth.