01
Separate generation from verification
A tool may suggest a useful test, but the expected result must come from the requirement—not from the same generated assumption as the implementation.
Review whether each assertion proves something meaningful. A test that only checks that a page loaded can pass while the main user journey is broken.
- Map tests to acceptance criteria
- Name the behaviour being protected
- Keep expected values explicit
- Review generated selectors
02
Prefer resilient browser tests
Modern browser tools can wait for elements to become actionable, but the test still needs stable selectors and a clear state. Prefer roles, labels and test identifiers over brittle CSS chains.
Control test data so runs do not depend on an unrelated production record or the order of earlier tests.
- Make each test independent
- Use accessible labels
- Avoid arbitrary sleeps
- Capture useful failure evidence
03
Use AI for coverage review
AI can help identify missing boundary cases from a written workflow: empty input, duplicate submission, interrupted network or insufficient permission. A person should decide which risks matter.
Never send private production data to a tool without an approved data-handling process.
- Review privacy before sharing logs
- Test permission boundaries
- Include mobile layouts
- Add regression tests for real defects
04
Know when manual testing remains necessary
Visual quality, wording, assistive-technology behaviour and confusing flows often need human judgement. Automated checks are strongest when paired with exploratory testing.
Release decisions should combine test results with the risk and scope of the change.
- Keyboard-test important journeys
- Check responsive layouts visually
- Verify error messages
- Test third-party failure states
Sources
Primary references
Technical and regulatory points were checked against the following primary or official references.
This guide was prepared with AI-assisted research and drafting, then checked against the cited sources and reviewed for unsupported claims before publication.