
Persona-based testing with AI agents: find the UX gaps your E2E tests can't see
TL;DR : Give an AI agent a user persona and no map of your product. Make it state what it expects before every click. Compare expectation to result. Anything that doesn't match is a UX gap your functional tests will never find. At the end of the session, ask it for a score. The scores are humbling. The blind spot you can't fix by writing more tests Your E2E test suite passes. Every assertion is green. The sign-up flow works, the confirmation email arrives, the dashboard loads. And then a real user lands on your product and gets confused at the third step. Not because it's broken. Because it wasn't legible . This is the gap that functional testing can't close. A test asserts that clicking a button triggers an event. It doesn't assert that a new user understood what the button was for before clicking it. That gap lives entirely outside the test runner — and it only surfaces in production, when someone who doesn't think like you tries to use something you built while thinking like yoursel
Continue reading on Dev.to Webdev
Opens in a new tab




