A Playwright test framework where an autonomous AI agent is a first-class citizen of the QA workflow — mapping existing coverage, navigating the live app, generating test cases for uncovered flows, and deduplicating them semantically before they reach the test management system.
Manual test coverage drifts. As features ship, new flows emerge that aren't covered by existing suites — and finding those gaps requires constantly auditing both the live application and the test code. At scale, this is impossible to maintain by hand without dedicated tooling.
Beyond discovery, there's a duplication problem: test management systems accumulate semantically identical entries written by different people at different times. "Login with valid credentials" and "should login successfully" describe the same test — but without deduplication, both end up in the backlog.
An AI agent integrated directly into the QA workflow. Rather than replacing human-written tests, the agent works alongside them — extending coverage autonomously while conforming to the same framework conventions the human tests follow.
The result is a self-extending test suite where human-written and AI-generated tests coexist without noise. The agent handles discovery and generation; the framework handles execution; Qase TMS holds the ground truth.
The agent parses all existing spec files and extracts the flows that are already covered — building a structured map of what the suite currently tests.
Using Playwright, the agent navigates the live application — browsing pages, triggering interactions, and identifying user paths that don't appear in the coverage map.
For each uncovered flow, the agent generates a structured test case. Cases follow the naming conventions, assertion patterns, and data factory usage of the existing human-written tests.
Before publishing, the agent compares new cases against existing TMS entries using semantic similarity — recognising that "Login with valid credentials" and "should login successfully" are the same test and discarding the duplicate.
Clean, deduplicated test cases are pushed to Qase TMS, ready to be picked up for automation or manual execution.