Why it matters
When a unit test stops at a successful function, the browser can still show stale data, hide the action for one role or lose a result on reload. A status label should name what was actually observed.
Core concepts
Make the journey observable
Write a plain-language script with the intended role, starting state, action and visible ending. Pick a synthetic example that an independent reviewer can recreate.
Test the boundary that failed
If a success message appears but the record disappears on reload, inspect the request, durable write and next read. Fix the smallest confirmed cause, then add coverage at that boundary.
Choose an owner for the next stage
Keep the version and environment with the evidence. Name the person qualified to verify the workflow and the person who will review adoption after rollout.
Try it step by step
- Write the intended journey on one card.
- Run it once in a clean state. Record the first wrong visible result.
- Add a regression check for that specific failure and rerun the whole journey.
- Keep the measured business result open until a baseline and post-release window exist.
Use six evidence states: designed, implemented, tested, deployed, verified by the intended user, measured. Each state needs its own artifact.
Worked example
A fictional reviewer edits a status and sees a success toast. After reload, the prior value returns. The UI assertion alone passed. A durable acceptance check edits, reloads and verifies the value under the intended role.
Common mistake
Marking a feature user-verified after tests pass on a development branch.
Practice exercise
Write a browser acceptance check for changing a field, including a reload, an unauthorized role and the evidence to save.
Check your understanding
Which check proves the status persisted for the reviewer?
- Assert the click handler ran.
- Reload under the same role and read the changed status.
- Check that the branch was merged.
Show answer
Reload under the same role and read the changed status.. Reloading tests the next read as well as the initial interaction.
Takeaway
A passing test is strongest when you can state precisely what it proved.