Automated Tests
Why we rely on Playwright for the AI Suite
Automated testing is a central part of our development strategy – especially for a complex application like the AI Suite, which connects TYPO3, AI APIs, and various system components. We face diverse challenges: different TYPO3 versions, complex backend interfaces, cross-system processes, and costly AI interfaces.
In this article, we will show you how we have built a sustainable testing strategy, which tools we have tried, why we ultimately chose Playwright – and how we are currently automating over 300 stable, repeatable test cases with it.
What are the challenges?
Anyone who develops TYPO3 projects with AI features professionally knows the typical hurdles:
- Testing in the TYPO3 backend: complex UI, partly nested content, and iframes
- Cross-system tests: interaction with servers, APIs, and other frameworks
- Different TYPO3 versions: test coverage for v11, v12, and v13
- Costs due to API requests: especially when testing AI services, every call is cost-relevant
These aspects significantly complicate automated testing – both technically and organizationally.
Where to start?
At the beginning, we searched for a structured, practical solution. We wanted to develop a testing strategy that works in the long term. For this, we analyzed various frameworks and clearly defined our requirements:
- Scalable for multiple TYPO3 versions
- Decoupling of frontend and server logic
- Good maintainability and stability
- Reduction of unnecessary costs in AI tests
Tests against live data
Including real AI requests, which were expensive and unreliable
Random generation
The random generation led to unstable results
Identical tests for different TYPO3 versions
For each TYPO3 version, nearly identical tests ran with high maintenance effort
The consequence: unstable tests
Additionally, little reliability as well as high costs and maintenance effort
Separation of TYPO3 frontend and server/API tests
Fewer dependencies, clearer responsibilities
Unified test database
Same data basis for client, server, and shop
Standardization of test cases
Version-specific logic is outsourced
Result: More stable, repeatable tests
Additionally, less maintenance effort and lower costs
Conclusion
Automated end-to-end testing with Playwright is not just a "nice to have" for us, but essential. As the functionality of the AI Suite grows, so does the complexity – and thus the demands on our quality assurance.
Playwright gives us the assurance that everything works as it should – even in future TYPO3 versions, in different browsers, and with various user workflows.
The combination of modern AI and a solid testing strategy makes the AI Suite what it should be: Reliable. Future-proof. Strong in everyday use.