← all posts
project5 min·September 18, 2026

Testing an app with no test IDs and no staging

building a Maestro plus Playwright suite when all you have is the live UI

No staging environment, no test-only IDs, no back door to seed data. Just the vendor app, the web dashboard, and whatever the UI would tell me. Here is how I got 25+ flows under automation anyway.

the constraints

The brief was awkward in the honest way real work usually is: production-like builds only, no staging, and no test IDs injected into the markup. That meant every assertion had to be UI-level, matching visible text and roles, and every precondition had to be created through the app itself.

mobile with Maestro, web with Playwright

Maestro drove the vendor APK: launch with a clean state, tap on the text a user would tap, assert the screen that should follow. Playwright covered the partner web dashboard the same way. A small Node.js runner drove both and reported one result. The interactions were the easy part. The app fighting back was not.

the app fought back

  • A router devtools badge sat in the corner and physically intercepted clicks, so I injected a style tag on every page load to hide it before the tests ran.
  • The Academy Management menu was collapsible and sometimes loaded closed, so a helper always expanded it before touching its children.
  • Dropdowns were custom portals, not standard components, and batch rows ended in 'N/total Available', so a full batch was simply not clickable and the test had to know that.
  • Name fields accepted alphabets only, so I generated unique names by encoding the timestamp's digits as letters.
  • Counters only refreshed after a reload, not live, so I reloaded and then asserted instead of polling a stale value.

lessons

  1. With no test IDs, the stable selectors are text and roles, so I leaned on exactly what the user sees.
  2. When you cannot seed data, make each test create and clean up its own world through the UI.
  3. Half of end-to-end testing is discovering the app's quirks: stale counters, portals, and overlays that eat clicks.
A test suite with no back door is just a very patient user who never forgets to check the boring things.