A buyer applies a coupon, returns from the payment page and taps confirm again. Both screens can look right while one journey records two orders.

What Shopify separated with Reflex

Shopify Engineering describes Reflex as an architecture in which logic can be tested without rendering the interface. The team runs the same test file against iOS and Android implementations and uses UI tests for device and rendering concerns.Shopify Engineering

A shared order journey

  1. Start with the same product, inventory, discount code and test account.
  2. Change stock between adding to cart and confirming. Check the message and that no order was placed when stock was unavailable.
  3. Simulate repeated confirmation and check the expected backend result: one order and one recorded payment.
  4. Run a separate device journey for keyboard behavior, accessibility and returning from the payment page.

When the results diverge, record the steps, app version and state in the order system. That lets you replay the exact case after the fix.

Sources and further reading

Shopify Engineering: Reflex and shared tests for iOS and Android

The November 5 article describes the state-and-actions contract and the separate role of UI testing

Accessed

FAQ

Does a shared test require shared code?

You can retain separate implementations if they use the same inputs, actions and expected outcomes.

Where should I test duplicate payments?

Use a test environment and your provider’s test mode. Compare the app result with the payment and order records.

Acceptance scenarios for custom software

Define the expected outcome for out-of-stock items, payment retries and order confirmation.

Discuss your software projectView service