Agent Testing and QA Workflow
Have an AI agent test your app the way a customer would use it, then give you proof, including what happens when something fails.
Content date: October 15, 2026.
Plain English
Quality assurance (QA) checks that a workflow works for the people it is meant for, and fails safely for everyone else. A unit test checks one small piece of logic. An integration test checks how pieces work together. A browser test opens your page and clicks and types like a person. Visual and accessibility checks tell you whether a working page is also readable and usable, including by keyboard.
Use this when
Start as soon as one real user workflow exists. Test again whenever a change touches form inputs, saved data, who can see what, navigation, or error recovery.
If you are just starting
Pick one important journey, such as booking an appointment. Test the normal case, an empty form, a badly formed entry, and a server error. Use made-up data that no other test shares. Find buttons and fields by label ("the Submit button"), not position. Wait for something visible, not a fixed number of seconds. Try the keyboard alone and a narrow phone width.
When your project grows
Cover the critical journeys for each type of user and environment. Keep tests independent so they pass in any order, and save a trace or screenshot when one fails. Tell real bugs from flaky setup, and treat a switched-off flaky test as lost coverage with an owner. If your app shows AI answers, test those separately with realistic questions. That supplements your app tests and does not replace them.
Worked example
A dental office's booking form passes its success test. But when the server rejects a slot that was just taken, the form clears everything the patient typed. A failure test catches it. QA also finds that keyboard focus never reaches the error message. The fix keeps the typed details, focuses the message, and lets the patient pick another time.
Practice
A complete journey and its recovery
- Name one user journey and what success looks like, such as "A visitor books a 10 a.m. slot and sees a confirmation."
- Create made-up test data and a way to force a server failure, such as a pretend taken slot.
- Have the agent write tests for the normal and failure paths, each checking what the user sees at the end.
- Run the journey by keyboard, then shrink the window to phone width and look for problems.
- Save a failing screenshot or trace, fix the issue, and rerun the tests.
Deliverable: A repeatable QA checklist, journey tests, and a record of one failure, its fix, and the passing rerun.
Common mistakes to watch for
- Tests share one test account, so one failure makes ten others fail.
- A fixed five-second wait passes on your laptop and fails on a busy server.
- A test clicks Submit but never checks the result, so a broken form still passes.
- An accessibility scan comes back clean, and nobody tries a keyboard.
Prompting
A weak prompt
Click around and tell me if it looks good.
A better prompt
Write a QA plan for this journey: [describe it]. Use made-up data that each test creates itself. Cover the normal case, an empty entry, an invalid entry, a user who is not allowed, and a server failure. Find elements by visible label or role, and wait for visible results, not fixed delays. Run the app, try it by keyboard and at a narrow width, and keep a screenshot or trace of any failure. List automated and manual checks separately.
It turns "I clicked around and it seemed fine" into repeatable checks while still covering what a person can see.
Check before you move on
- Each test makes its own made-up data and checks the result, not just a click.
- You tested a failure, completed the journey by keyboard, and looked at a narrow width.
You are done when
- The journey and its error recovery work in your recorded checks.
- Your report says what you did not test, such as other browsers or user types.
Questions to think about
Why is a test that waits five seconds worse than one that waits for the confirmation message?
A fixed delay is too short on a slow day and wasteful on a fast one. Waiting for the message passes when it appears and fails clearly if it never does.
Your form submits correctly. What else should you test before calling it done?
What happens when the submission fails. The user should see a clear message, keep what they typed, and not be booked twice.
Your browser tests pass for a chatbot page. Do they show its answers are good?
No. They show the page works and a response appears. Answer quality needs realistic questions of its own, because AI answers vary between runs.