
Business Software
AI-Powered Automated Functional Testing: Methods, Limitations, and Best Practices
7
min de lecture
Sommaire
Blog
Business Software
Current page
Copier le lien
Introduction
Front-end regression tests are essential to guarantee the quality of a web application. They verify that a new change hasn’t broken an existing feature: a customer journey, an order, a contract, secure access.
In practice, these tests are often hard to maintain. The more an interface evolves, the more fragile and costly the tests become, and the harder it is to keep them going over time.
During a Synako offsite, an internal hackathon gave us the chance to explore a very concrete question:
How can artificial intelligence be used to automate front-end testing without falling into an unstable or “magical” approach?
The goal was not to replace existing tools, nor to “put AI everywhere,” but to test AI’s promises against real-world conditions:
existing documentation,
technical constraints,
the need for reliability,
the requirement for long-term sustainability.
This article looks back on that experiment and shares a pragmatic approach to AI-assisted front-end regression testing, designed to remain robust, understandable, and genuinely usable in production.
Why Front-End Regression Tests Are Hard to Automate
Front-end tests cover critical journeys: creating an order, accessing a contract, filtering a list, navigating an interface.
But several difficulties come up again and again:
interfaces change frequently,
on-screen elements change position or label,
the data displayed is dynamic,
simple visual tweaks can break a test,
scripts become hard to read for non-technical team members.
The result:
tests become fragile, generate false positives, and sometimes end up being disabled or ignored.
It is in this context that AI is often presented as a silver bullet. But the reality is more nuanced.
Automating Tests with AI: Promise or Illusion?
During the hackathon, we explored several AI-based test automation tools.
The idea is appealing:
“The AI looks at the screen, understands what needs to be done, clicks for you, and validates the result.”
In practice, several limitations quickly emerged:
results are not always reproducible,
the same test can pass one day and fail the next,
the AI sometimes misinterprets the functional intent,
resource consumption (tokens) can skyrocket,
it is hard to guarantee that tests will hold up over time.
AI can help, but it isn’t enough on its own.
To be truly useful, it must fit into a clear architecture, with precise rules and constant human oversight.
Building on What Exists: Documentation and PM/Dev Collaboration
A key lesson from the Synako experiment:
automation shouldn’t start from scratch.
The teams relied on:
the existing acceptance test plan,
the scenarios defined by the product managers,
the developers’ expertise for tooling and execution.
This collaboration is central:
the PM describes the functional journeys and business rules,
the developer provides the technical infrastructure,
tests remain readable, understandable, and editable.
AI is there to speed up this joint work, not replace it.
A Hybrid Approach: AI + Playwright
Rather than handing all testing over to AI, Synako explored a hybrid approach based on Playwright, a proven front-end testing framework.
Playwright makes it possible to:
run tests across multiple browsers,
simulate mobile usage through emulation,
produce explicit, version-controlled, maintainable scripts.

The Role of AI in This Approach
AI doesn’t run the tests directly in production. It acts as an assistant:
it helps generate test scenarios,
it speeds up script creation,
it makes it easier to explore the interface,
it provides an initial working base.
The final tests remain conventional code: readable, controlled, and executed deterministically.
The Key to Reliability: Stable Selectors
One critical point identified during the hackathon concerns how interface elements are targeted.
The teams found that:
selectors based on text or position are fragile,
a simple label change can break a test,
false positives become frequent.
The solution we chose:
use stable technical identifiers (data-test-id) built directly into the code.
We considered a script to:
automatically replace unstable selectors,
make tests more robust,
limit failures caused by minor visual changes.
Handling Authentication and Test Sessions
Another key topic: authentication.
Replaying a full login flow for every test:
lengthens execution times,
makes scenarios more fragile,
complicates maintenance.
The solution we explored relies on:
a secure API to retrieve a valid user session,
use strictly limited to the sandbox,
controlled permissions.
Tests become faster, more reliable, and closer to real-world usage.
Why AI Must Stay Within Guardrails
One strong principle emerged from the hackathon:
AI must never act without guardrails.
The teams set several clear rules:
no unrestricted access to critical actions,
no implicit decisions,
no blind automation.
Tests must remain:
visible,
auditable,
reproducible,
understandable by both product and technical teams.
AI becomes an intelligent interface, not a substitute for existing processes.
What Are the Concrete Benefits for Teams?
For Product Teams (PMs)
more readable tests,
greater ownership of quality,
stronger collaboration with developers.
For Technical Teams
tests that stay stable over time,
fewer false positives,
less maintenance,
automation that genuinely works in CI/CD.
For the Company
safer production releases,
fewer regressions,
better quality as perceived by users.
What This Experiment Reveals
This hackathon highlighted an essential reality:
AI is not the central issue. Architecture is.
Without:
clear documentation,
stable conventions,
PM/dev collaboration,
the right tooling,
AI amplifies problems instead of solving them.
Conclusion: Automate Intelligently, Not Blindly
AI-assisted front-end regression testing is neither a magical revolution nor a marketing gimmick. It becomes genuinely useful when it is part of a structured, pragmatic, and well-controlled approach.
At Synako, this experiment reflects a clear vision:
equip teams without taking control away from them,
automate without losing reliability,
use AI as a lever, not a crutch.
The goal is not to do “more AI,” but to do better, sustainably.

