Yesterday, I got a question from a Mendix developer about our product Menditect Test Automation. His simple question was “why bother with a dedicated Mendix testing tool that covers multiple test levels and keeps test logic decoupled from the app, when you can just let AI generate standard Playwright scripts?” At first glance, his remark makes total sense. Playwright is free, AI writes the browser scripts in seconds, it clicks through the UI just like a real user, and every build turns green. Why overcomplicate things when standard end-to-end testing seems to do the job just fine?

I gave him a short answer that Playwright lacks backend testing capabilities and frontend tests cannot cover everything. However, this felt unsatisfying because I did not explain why this is important. So, when I woke up this morning, I wanted to write down an analogy that explains in a simple way why standard Playwright test generation works fine at the start, but has serious limitations when your application grows in size and complexity and explains why we should stop testing our Mendix skyscraper like a garden shed.
For the past few months, I have been working a lot with AI. As a product manager, it is really great to be able to have the AI build what I have in mind. This is also true when building Mendix apps with an agent. Of course I test my code, and yes, I also use Playwright. The problem is not Playwright, and it is definitely not the AI. The problem is that we treat every Mendix app like a small project while it can actually grow fast into something massive. To see why relying purely on UI tests and loose architecture breaks down in that case, picture how you build things in the real world.
Imagine you are building a wooden garden shed in your backyard. You grab a hammer, nail some cheap planks together, and run a single orange extension cord out of your house to power one hanging lightbulb. You do not draw a blueprint, and you certainly do not hire an inspector.
To test it, you flip the switch. The bulb flickers on, you close the door, and you are done. In Mendix, this is your quick proof of concept or simple internal tool. AI can build this in an afternoon, and a Playwright test clicking a single button is completely fine.
Now, picture the business actually liking your shed. They ask you to turn it into a single-family home. You pour a small concrete slab, put up drywall, add a bathroom, and wire up a basic fuse box in the hallway.
If you want to test this house, you can still just walk from room to room, turn on the kitchen faucet, and flip the light switches. If the shower runs cold, the house is small enough that you just climb the ladder to the attic, look at the boiler, and see the pilot light is out. This is the exact phase where we as Mendix builders get fooled. We have a working domain model, some security roles, and a few integrations. Our AI-generated Playwright tests walk through the rooms, flip the switches, and pass. We think we found a cheat code that will work forever.
It will not. The business keeps asking for new features, and within a year, that little house has turned into a ten-story apartment building. You have multiple developers or agents merging into the same branch, dozens of modules, and complex business logic everywhere.
If you keep prompting AI to just bolt on features without enforcing clean architecture, look at what happens inside the building. Without a blueprint for load-bearing walls and dedicated utility shafts, the AI runs the sewage pipe from the third floor straight through the middle of someone’s living room on the second floor. It buries live electrical wires directly inside solid concrete without plastic conduits. Everything works on demo day. Then next sprint, someone asks you to move a kitchen sink on the fourth floor. You tweak one microflow, and suddenly the eighth floor has no electricity and raw sewage is backing up into the basement.
And look at what happens to your testing at this stage. Relying only on Playwright means you are waiting until the entire apartment building is painted, furnished, and occupied before you test anything. Even worse, in Mendix, testing through the UI is like sending a blindfolded inspector through the building with strict walking instructions: take four steps past the coat rack, turn left at the third doorframe, and flip the switch. Because Mendix screen locators are notoriously brittle, the moment a developer tweaks a layout grid, updates a widget, or moves a button to a different container, it is like someone moved the coat rack. Your AI-generated Playwright test walks straight into a wall and turns red, even though the wiring behind the wall is completely fine. Sure, you can ask the AI to rewrite the walking instructions every sprint, but now you are spending your time babysitting your tests instead of building features, while burning through a lot of tokens in the process.
When a browser test actually does catch a real bug, say, a faucet on the sixth floor has no water, all you know is that a tenant is complaining. You have no idea if the faucet handle is broken, if a pipe burst behind the tiled wall, or if the main water pump in the basement burned out. You end up wasting entire sprints stepping through massive, spaghetti microflows in the Mendix debugger, metaphorically smashing open brand-new drywall with a sledgehammer just to find a leaking joint.
In a real apartment building, you never close up the walls until a plumber puts pressure on the pipes and an electrician tests every single circuit in the fuse box. And just as importantly, they do not cement their pressure gauges, voltage meters, and scaffolding permanently into the walls. Imagine handing over an apartment where tenants have to step around diagnostic cables and risk bumping into a test valve left behind in the hallway. Instead, a well-built structure has clean inspection ports. The inspectors bring their own toolbox, plug into the system, run their checks, and leave the actual building untouched.
That is what decoupled, dedicated testing on your non-UI microflows actually does. It keeps your test logic completely separate from your production Mendix model. You get no bloated deployment packages, no merge conflicts with test microflows, and zero risk of test data leaking into production. At the same time, you immediately know which pipe is leaking before you ever paint the walls.
Finally, imagine that app becomes a mission-critical enterprise skyscraper. You cannot stack eighty garden sheds on top of each other and hope a storm does not blow through. You need deep foundation piles driven into the bedrock, wind dampers at the top, and strict separation between elevator shafts, power grids, and water systems so you can repair one floor without shutting down the whole tower.
You do not wait until the building is finished to see if it holds up. Every single steel beam is stress-tested for tensile strength in the factory before a crane ever lifts it. By the time a city inspector rides the elevator to the eightieth floor to press the buttons—which is your Playwright test—they are only checking the finishing touches, not praying the steel frame does not snap.
AI is basically an infinitely fast construction crew that never gets tired and never complains. That is awesome for us as Mendix builders, because we can build way more cool stuff than ever before. Just remember that you are still the architect. If you do not draw the utility shafts, keep your testing gear separate from the brickwork, and test the pipes before the drywall goes up, your super-fast crew will build you a death trap in record time.
So, if I run into that developer again, that is the answer I will give him. Playwright and AI are great for getting started, but once you are building a skyscraper, you need a testing strategy—and tooling—built for that scale.
If you want to see how MTA works on real Mendix microflows and pages, check out these sessions:
Enter your information and choose a day and time when you would like to meet Menditect sales (1,5 hrs).