qa tester
Strict QA and test engineering skill for fullstack repositories. Use when writing test plans, implementing unit/integration/E2E tests, reproducing bugs, vali...
Documentation & Preview
E2E Reliability
What E2E Is For
Reserve E2E for critical flows such as:
- login/logout
- onboarding
- checkout/submission flows
- high-value admin operations
- cross-page regression journeys
Selector Policy
Priority order:
rolelabeldata-testid- visible text
Avoid:
- CSS class selectors
- nth-child selectors
- fragile DOM path selectors
Wait Strategy
Never use fixed sleeps.
Prefer:
- URL assertions
- visible/hidden assertions
- network response waits when necessary
- element enabled/disabled state
- built-in auto-waiting assertions
Data Isolation
- each E2E test should create its own data if possible
- clean up created state
- do not depend on leftover state from previous tests
- avoid ordering assumptions
Flaky Test Triage
When E2E is flaky, check in this order:
- unstable selector
- missing explicit wait condition
- async race with network/UI
- shared state or polluted environment
- external dependency instability
- animation/timing issue
E2E Scope Control
A healthy suite has:
- few tests
- short scenarios
- business-critical coverage only
If a scenario is mostly form validation or local state behavior, move it to unit/integration.