r/softwaretesting • u/RoundProfessional77 • May 13 '26
How to test complex UI workflows
**How do you actually test complex UI workflows at scale? Looking for real approaches, not textbook answers.**
I work on a team testing a pretty complex enterprise web app — think multi-step approval workflows, role-based access across multiple modules, workflow state machines, cross-module data dependencies, and dynamic UI that changes based on user permissions.
We've been using Playwright and have decent coverage but I feel like we're still missing a lot. Releases occasionally break things we didn't catch and I want to level up our approach.
**Specifically curious about:**
- **Workflow state machine testing** — do you explicitly test every state transition or just happy paths? How do you manage the combinatorial explosion of states?
- **Role & permission testing** — how do you efficiently test that the right UI elements show/hide for the right roles without writing 10x the tests?
- **Test data isolation** — how do you make sure tests don't bleed state into each other, especially for workflows that span multiple steps and modules?
- **Cross-module side effects** — when a change in Module A silently breaks something in Module B, how do you catch that before it hits production?
- **AI-assisted test generation** — has anyone built or used internal tooling where you prompt + record to generate test code? Did it scale or did it become a maintenance burden?
- **Release gates** — do you have hard automated gates that block releases, or is it still humans making the final call?
Not looking for "use Cypress/Playwright/Selenium" answers — I want to know the **philosophy and approach** your team uses, what actually works in practice for complex UIs.
What does your team do that you wish more teams knew about?
Thanks 🙏
---
*For context: enterprise app, on-prem, bi-weekly releases, mix of dev + QA writing tests, GitHub Actions CI*
5
u/n134177 May 13 '26
AI-slop
2
u/NoEngineering3321 May 16 '26
Ai slop question.
Ai slop answers.
Next time just ask AI. Save us some electricity
1
u/jrwolf08 May 13 '26
1
u/Yogurt8 May 14 '26
All of these can easily be solved/answered by an experienced SDET. Do you have one on your team you can talk to? If not, consider hiring one.
1
u/TranslatorRude4917 May 14 '26
Hey! I'm working as a FE dev at a small startup (~25ppl) but also being the test evangelist at our company.
One of my earliest mistake was trying to write e2e tests that cover everything. The more we had the less reliable the pipeline became. Recently we eliminated half of the test suite, moved everything what's possible earlier in the feedback loop (component/unit tests with vitest) and kept only major flows as truly e2e. Faster feedback, more stable pipeline, same level of confidence.
Rule of thumb we try to follow: Only write the test as e2e if the user flow it checks makes a permanent change to the system. If it's interaction-only and the changes "stay on the client" it's probably better writing a component/ui test for it with mocked network calls.
Side note: this took some time to achive, since one can only do it if FE components are decoupled enough. Otherwise your test harness becomes a second application to maintain.
Now regarding your specific questions:
I think there's definitely place for longer e2e tests checking a whole user journey spanning multiple pages, but you should only have a few for your main user journeys.
A lot of time this cross-dependencies can be expressed with proper test setup, preconditions composed in "beforeEach" and the tests only doing a concentrated check.
For example: I'm working on a contract management software. When testing the e-signature process for different kings of signatures, creating the document, adding the parties & signatories happens all in test setup via api calls. The e2e test only checks the actual signing processes via ui. We have one single e2e test that goes through the whole process using ui - since it's a major user journey - rest of the tests define the "given" part in setup.
Grounding your tests in what actually works rather than letting the ai assume it from source code is key. I created an e2e testing tool that lets you use PW codegen to record the user journey, then it recommends POM and e2e test what you can refine with a coding agent. Still early but already proven useful at my day job.
0
u/ohlaph May 14 '26
The situation regarding the thing itself is, in many ways, reflective of the broader context surrounding it, especially when viewed through the lens of how people tend to approach these kinds of circumstances in general. While there are certainly arguments to be made on either side, it’s also important not to overlook the fact that the underlying factors may or may not contribute meaningfully to the overall outcome, depending largely on perspective, timing, and the degree to which external variables are considered relevant.
At the same time, there’s something to be said for acknowledging that not every development necessarily leads directly to a conclusion, even if it appears, on the surface, to suggest a particular direction. Some would argue that this ambiguity is itself part of the process, whereas others might contend that the process only appears ambiguous because of the way it has been framed from the outset.
Ultimately, the key takeaway may simply be that the matter continues to exist within a framework where multiple interpretations remain possible, regardless of whether any of them are especially useful in practice.