QA PRACTICE•EDGE CASES
QA Practice · learn edge cases
Find the bugs happy paths miss
Explore a risk, run a small check, observe the expected result, and then connect it to a Playwright assertion.
Your edge-case practice
Open a scenario, run the check, then read the automation assertion.
Empty states
Every list/table must render a deliberate empty surface — not a blank screen — when filtered to zero rows.
Boundary values
Min, min+1, max-1, max — the four amounts that catch off-by-one errors in caps, lengths, and quotas.
Slow API
Skeletons, loaders and disabled CTAs must hold for a 3-second backend without losing user input.
Duplicate clicks
Idempotency keys + disabled-on-pending CTAs prevent double-charged orders and duplicate transactions.
Token expiration
Expired JWTs must redirect to /login with a deep link, not crash the route.
Invalid currency precision
Amounts with more than 2 decimal places must be rejected at the boundary, not silently rounded.
Modal overlay blocks click
An invisible overlay can swallow clicks; pointer-events + z-index must be tested explicitly.
Hidden vs. visible race
An element can be in the DOM but visibility:hidden — assertions must use toBeVisible(), not toBeAttached().
File upload wrong format
Server-side MIME check must reject a renamed .exe; client-side check is not a security boundary.
Pagination reset after filter
Applying a filter while on page 5 should not leave the user on an empty page 5 of the new dataset.
RBAC unauthorized access
Direct navigation to /admin as a non-admin must reject — and the test must verify no admin payload was fetched.
Network offline recovery
Disabling the network mid-session must produce a recoverable banner, not stuck spinners.