← Back to Portfolio
Client details generalized

Customer Identity Platform: E2E Automation and Framework Modernisation

End-to-end automation for a large-scale customer identity platform, covering registration, sign-in, account recovery, multi-factor verification and passkeys, plus a framework audit and modernisation that made the suite faster and more reliable.

PlaywrightTypeScriptPage Object ModelAPI TestingWebAuthn / PasskeysOTP (Email & SMS)LocalizationJenkinsCloud Browser GridAllureAI-Assisted Healing

At a glance

Domain
Customer identity and access (registration, authentication, recovery)
Scale
Enterprise platform serving a large consumer user base
Suite type
Integration-level E2E: UI, API, email/SMS and passkeys together
Stack
Playwright, TypeScript, Jenkins, cloud browser grid, Allure
Coverage
Multiple application variants, environments, browsers, English and Spanish
My focus
Registration journeys, framework audit and modernisation, AI-assisted healing

Overview

Identity is the front door of a product. If registration, sign-in or account recovery breaks, nothing else matters, because users can't get in. It is also one of the hardest areas to test well: every journey crosses several systems (the UI, identity and user-management services, email and SMS delivery, the browser's passkey APIs), and many steps are security-sensitive and time-dependent.

This project was the end-to-end quality layer for a large customer identity platform. The goal was not to check screens in isolation. It was to prove that a real user can create, access, recover and manage an account across every supported application variant, environment, browser and language.

What the suite covered

  • Registration, sign-in, email verification, SMS verification, password setup and account-success flows
  • Password recovery, username recovery, account lockout and recovery behaviour
  • Step-up identity verification and assisted registration
  • Passkey (WebAuthn) setup, sign-in, redirects and removal
  • Single sign-on and invitation-based account creation
  • Profile management and session timeout behaviour
  • Footer, legal, accessibility, help and modal content
  • English and Spanish runs, designed so more languages can be added
  • Journeys for users with and without an existing record on file, each with different verification paths

What I worked on

  • Automated registration user journeys end to end, including field validation, error and retry paths, age-based consent paths, verification by email and SMS code, and the hand-off to password and passkey setup.
  • Worked across the framework's layers (specs, fixtures, page objects, reusable flows, API helpers) to add and maintain coverage as the registration experience changed.
  • Audited the whole framework, wrote a prioritised modernisation plan (22 concrete improvements with before/after examples, grouped into phases), and then implemented the improvements in the suite, one small pull request at a time.
  • Introduced AI-assisted locator healing into the maintenance workflow: a small, low-cost decision model handles routine locator breaks, and an LLM test agent is used only for the hard cases, with every fix verified by re-running the test.

How the framework is built

1Test specs
Describe business scenarios in plain steps
2Fixtures
Typed setup that hands tests a ready page or page object
3Page objects
Own each screen's locators, actions and the transition to the next screen
4Flow utilities
Combine several pages and integrations into one reusable journey
5Integrations
API helpers, email/SMS inbox, virtual passkey authenticator, translations, environment config
6Execution and reporting
Jenkins pipeline, cloud browser grid, Allure report, team notifications
Framework layers, top to bottom.

The design is deliberately layered. Specs say what the user is doing, page objects know how each screen works, flow utilities stitch screens into journeys, and configuration and data utilities take care of environment and state.

Engineering highlights

Reusable journeys that can stop anywhere. Registration is long: identity details, email code, phone code, password, passkey, success. Instead of repeating those steps in every spec, a flow utility runs registration up to any chosen step and returns the page object for that point, along with the generated credentials. A test that only cares about the password screen gets there in one line and starts asserting.

Real email and SMS verification. One-time codes are read from real test inboxes and phone numbers through an inbox-testing service, with polling for delivery, HTML and plain-text parsing, and filtering by receive time so a test never picks up a code from an earlier message. SMS checks are opt-in per run, because real SMS consumes quota.

Passkeys without hardware. Passkey registration, sign-in and removal are tested with Playwright's virtual WebAuthn authenticators, covering both built-in and USB-style authenticators, so a full passkey ceremony runs in CI with no physical device.

API-assisted setup and cleanup. Not everything goes through the browser. API helpers create users, look up state, generate invitation links and clean up afterwards. Tests reach the screen they care about faster, and can check backend state before, during and after a UI flow.

One suite, many variants. Environment, application variant, language and browser are all run-time parameters. Configuration lives in JSON per environment, and missing settings fail early with a clear message that says exactly what was expected and where.

Localization from real translation files. Multilingual specs read expected text from the locale files, so the same journey can be verified in English and Spanish without duplicating tests.

Data-driven edge cases. Generated names, emails and dates keep runs independent, while curated sets of invalid, malformed and boundary values drive the negative and validation scenarios.

CI that explains itself. A parameterised Jenkins pipeline runs the suite on a cloud browser grid, publishes an Allure report, and sends a summary to the team channel with environment details, pass/fail counts, the names of failed specs and a link to the report. Traces are kept on first retry and screenshots on failure, which keeps storage under control while preserving the evidence that matters. Accidental test.only commits are blocked in CI.

Framework audit and modernisation

A suite this size grows fast, and patterns that were fine early on start to cost time. I audited the framework, turned the findings into a phased plan, and implemented the changes:

  • Flakiness: replaced one-shot boolean checks and silently swallowed errors with web-first assertions and explicit two-outcome waits, and removed fixed waits.
  • Speed: made tests independent so CI can run in parallel, reused authenticated state instead of repeating full UI sign-in or registration as setup, and moved manual browser setup into fixtures.
  • Debuggability: wrapped page-object actions in named steps so reports show which business step failed, and attached only failure-relevant logs so reports stay readable as the suite grows.
  • Maintainability: named timeouts in one place, user-facing locators, feature-based folders with tags for run selection, smaller spec files, and assertions driven by the real translation files.
  • Guardrails: added lint rules that stop the old patterns from coming back.

Each item came with the reason it matters, a before/after example, and a definition of done, and the work was ordered so the highest-impact, lowest-risk changes landed first.

I later wrote up the general lessons, with no client specifics, as an article: "15 things your Playwright framework might be getting wrong" (opens in a new tab).

AI-assisted maintenance, with cost in mind

Most locator breaks are small: a renamed button, a changed id. Sending every one of them to a large AI agent costs tokens and minutes. I set up a tiered approach: a small decision model picks the right element from what is actually on the page, the fix is verified by re-running the failing test and undone automatically if it still fails, and only the breaks the small model can't handle go to an LLM test agent. A human reviews every change.

The approach is described in detail, on a public demo project, in "Fixing broken Playwright locators for 0 tokens" (opens in a new tab).

Quality and reliability focus

  • Test the journey, not just the screen: UI, API, messages and authentication are verified together.
  • Exercise real integrations (email, SMS, passkeys, single sign-on) at the E2E layer rather than mocking them away.
  • Keep security-sensitive paths honest: lockout, recovery, step-up verification and session timeout are first-class scenarios, not afterthoughts.
  • Make failures diagnosable: the report should say which business step failed and why.
  • Keep secrets out of code and documentation, injected only by the pipeline.

Outcome

  • Broad, repeatable coverage of critical identity journeys across application variants, environments, browsers and two languages.
  • A modernised framework: more stable tests, failures that are easier to diagnose, and a suite ready to run in parallel, delivered through a phased plan with a clear definition of done.
  • A cost-aware AI healing workflow that keeps routine maintenance cheap and reserves expensive agent runs for the cases that need them.

What I'd bring to your project

  • Designing or reviewing a layered Playwright framework that stays maintainable as it grows
  • Testing authentication properly: OTP, passkeys, SSO, recovery and lockout
  • Cutting flakiness and CI time: I audit, plan and implement the fixes
  • Using AI in test maintenance without letting the cost run away
Discuss a role or project