top of page

Cross-Page Journeys That Survive UI Refactors

Writer: Ashwin Kondapalli
Ashwin Kondapalli
Oct 16
4 min read

Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: October 16, 2026

The design team ships a refactor: the cart drawer becomes a full page, the payment form moves behind a modal, and two buttons get clearer labels. The next morning, the end-to-end checkout flow fails at step three. The question in standup is whether the product broke or the test did, and how long it will take to know. Teams with flows built on shared, versioned page objects answer that faster than teams with flows stitched together from inline selectors.

Cross-page journeys survive UI refactors when the journey describes the order of page visits and the pages own the objects. In LoopIQ, a cross-page user journey tells the generator to build one end-to-end automated flow across captured pages in a Page Object Repository. When the UI changes, you recapture the affected page, compare the new repository version, and regenerate or review, instead of hunting selectors across a long script.

What is a cross-page user journey in LoopIQ?

Per the LoopIQ test automation guide, a user journey tells LoopIQ to generate one end-to-end automated flow across multiple captured pages. You build it from a Page Object Repository with at least two active pages, add page visits, and arrange them in execution order. A page can be used more than once in a journey.

Why do end-to-end flows break during refactors?

  • Selectors embedded in the flow. Every step carries its own locator, so a refactor touches the whole script.

  • Order hidden in code. Nobody can see the intended page sequence without reading the test.

  • Modal and conditional UI. Controls that only appear after an action are missed or located inconsistently.

  • No version to compare. It is hard to tell what changed on the page versus what changed in the test.

How do you design journeys that hold up?

  1. Model real flows only. LoopIQ's guidance is to use journeys for real end-to-end flows across pages, not to chain every screen.

  2. Keep pages as the unit of change. Capture each route or screen as its own page in the right repository.

  3. Capture conditional UI. Open modals, drawers, and conditional forms and capture again; hidden objects are marked hidden until interaction.

  4. Name objects by purpose so a relabeled button keeps a meaningful name.

  5. Archive, do not reuse. Archive obsolete pages instead of reusing their names for unrelated screens.

What should you do after a UI refactor?

  1. Recapture the changed pages. Each approved capture creates a new immutable repository version.

  2. Open Version history and compare: added or removed objects, and locator, attribute, state, and semantic changes.

  3. If a page was removed from the product, replace or remove it in the journey first. A page used by an active journey must be removed from or replaced in that journey before it can be archived.

  4. Regenerate from the source work item with the journey selected, and review step order and page object references before approval.

  5. If the refactor was rolled back, restore the earlier repository version. Restoring creates a new version and records an audit event; it does not erase history.

How this works in LoopIQ

  • Build: find Cross-page user journeys, enter a name and optional description, select Add page visit for at least two distinct pages, use the up and down controls to order them, and Save journey.

  • Generate: select Use for generation, or choose the journey in Generate test coverage, with a source work item. Generation produces a review-only draft package.

  • Review: check the correct journey step order, stable page object references, and specific assertions; only approved assets reach governed execution.

  • Run and inspect: journey evidence per step can include step number and status, journey and page name, page URL, instruction and expected result, duration, locator references, failure type with a redacted message, screenshot, and downloadable trace. By default, screenshots and traces are retained for 30 days and redacted metadata for 365 days, unless organization policy changes it.

Archived pages cannot be used for new journeys. Karate API generation does not require a browser page journey.

Refactor triage excerpt (illustrative demo data)

  • 1: Page: Cart · Repository change: None · Action: Keep

  • 2: Page: Shipping · Repository change: Button label renamed · Action: Recaptured; object name unchanged

  • 3: Page: Payment details · Repository change: Form moved into modal · Action: Opened modal, recaptured

  • 4: Page: Order confirmation · Repository change: None · Action: Keep

Demo data for illustration only; not customer results.

Checklist: refactor-ready journeys

  • Journey covers a real end-to-end flow

  • Each route or screen is its own page in the right repository

  • Modals and conditional forms are captured

  • Object names describe purpose

  • Version history is compared after each recapture

  • Journeys are updated before pages are archived

  • Regenerated packages are reviewed for step order before approval

FAQ: quick answers

How many pages does a LoopIQ journey need? At least two distinct pages from a repository with at least two active pages. A page can appear more than once.

Can I archive a page that a journey uses? Not while an active journey uses it. Remove or replace it in the journey first.

What evidence does a journey run produce? Per-step status, page name and URL, expected result, duration, locator references, redacted failure details, screenshot, and trace.

Does a passing end-to-end journey authorize a release? No. It is evidence for reviewers. People make the go/no-go decision under policy, and release certification is not regulatory certification.

Let the pages change, keep the journey

See a requirement become reviewed tests and execution evidence in LoopIQ, including journeys that track page-object versions through a refactor. Book a walkthrough: https://meet.brevo.com/ashwin-kondapalli.

General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.

Recent Posts

See All
Page Object Repository Capture from an Existing UI

Inheriting a UI with no page-object layer? Capture meaningful objects from the running app into a versioned Page Object Repository, review every object before upload, and reuse them in reviewed Playwr

 
 
Migrating Playwright Repos Without Orphan Locators

A green Playwright suite can still hide orphan locators: dangling imports, dead page-object members, and drifted inline selectors. Build a locator inventory, consolidate into owned page objects, and m

 
 
bottom of page