Why it matters
A product manager can see whether the job can actually be finished. A developer can find the gap between a correct helper and the full application.
Core concepts
The test determines the claim
A unit test can show that a parser handles an input. An integration test can show the service writes a row. A browser test can show that a person with the intended role can reach the form, use it, and see the outcome. Each tests a different boundary.
Exercise the normal entry point
Start on the same home screen as the user. Use accessible control names, fill valid inputs, submit, and wait for the user-visible result. Reload or revisit to check persistence. A direct link to a component bypasses navigation and sometimes authorization.
Make states explicit
Cover the first visit, existing data, empty state, disallowed role, failed save and a retry. Include a small-screen viewport when staff use phones. Prefer checks that wait for the visible result over sleeps that merely wait a fixed time.
Show the missing evidence
A green status check is evidence of the configured checks on one commit. Record which commit actually deployed, which role verified it, what data was used and whether business results have had time to emerge.
Try it step by step
- Write an expected outcome for the full user journey and a smaller check at the suspected failure point.
- Create a realistic, synthetic fixture with the intended permissions. Start from the actual navigation.
- Capture the result, reload, verify persistence, and repeat after a deliberate validation failure.
Maintain a regression matrix with role, prior state, action, viewport, durable result and downstream effect. Choose cases from observed risks.
Worked example
Fictional example: A queue passes all component tests. In the live layout a sticky footer covers the mobile Save button. The handler works when called directly. A browser-level test at the affected viewport catches that the control cannot be clicked.
Build a regression matrix for [workflow].
Include role, existing record, new record, validation failure, retry and viewport.
Use the real menu and accessible control names in the browser test.
Assert the visible result, reload, and check the durable outcome independently.
Report the commit, browser, fixture and which paths were actually exercised.Common mistake
Changing the browser test to trigger JavaScript directly when a real user cannot press Save. That hides the original failure.
Practice exercise
Write three checks for a bookmark. One verifies storage, one verifies the button via keyboard and one verifies the bookmark after reload. Explain what each would miss on its own.
Check your understanding
All unit tests pass. Staff cannot save on small screens. Which check addresses the gap?
- Add more parser inputs
- Force the click through JavaScript
- Use a phone-sized browser and the same visible controls staff use
Show answer
Use a phone-sized browser and the same visible controls staff use. The issue is the rendered interaction. Force-clicking or testing the handler alone skips that boundary.
Takeaway
The test must pass through the same doorway as the user.