---
id: TST-COM-ORD-018
title: The live order composer
kind: unit
product_area: commerce
module: orders
revision: 1
status: draft
source_sha:
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: react-console
files:
  - components/order-composer/__tests__/live-composer.test.tsx
implements:
  - ATS-COM-ORD-003-11
  - ATS-COM-ORD-007-12
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: 'The suite owns its in-memory inputs, scripted responses and rendered component state.'
evidence:
  - provenance: test
    source: 'react-console:components/order-composer/__tests__/live-composer.test.tsx'
    test_cases:
      - shows exactly the figures Commerce's preview answered
      - 'has nothing to price, and says so, before there is a customer'
      - 'keeps the total when Commerce refuses a promotion code, and says why'
      - applies a code Commerce accepts and shows what it took off
      - 'offers the payment methods the checkout policy allows, and no others'
      - 'places the order, then takes a card: declined first, approved on the same order'
      - 'keeps the placed order, awaiting payment, when the card pop-up is closed unpaid'
      - records a check against the placed order with its number
      - 'records a wire transfer with its optional reference, as an offline tender'
      - 'bills on terms with the purchase order number, and takes no money'
      - 'lets an organization buy through a contact with no purchasing role, and says Commerce records it'
      - 'says the contacts could not be loaded, with a Retry that reads them again'
      - lists an affiliated contact who holds no roles
      - 'offers store products only (Andrew 2026-10-22), with no Prototype menu'
      - 'names the live store in the Store select, not a prototype store''s'
      - 'shows the contact''s address on file in the bill-to bar, and says none only when there is none'
scenario_coverage:
  - scenario: ATS-COM-ORD-003-11
    test_cases:
      - shows exactly the figures Commerce's preview answered
      - 'has nothing to price, and says so, before there is a customer'
      - 'offers store products only (Andrew 2026-10-22), with no Prototype menu'
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
  - scenario: ATS-COM-ORD-007-12
    test_cases:
      - 'places the order, then takes a card: declined first, approved on the same order'
      - 'keeps the placed order, awaiting payment, when the card pop-up is closed unpaid'
      - records a check against the placed order with its number
      - 'bills on terms with the purchase order number, and takes no money'
      - 'offers the payment methods the checkout policy allows, and no others'
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
---

# The live order composer

## Verification Boundary

The component suite renders the named screen with controlled adapter results.

## What This Suite Proves

The registered cases check the live order composer with their fixture records and assertions. Scenario bindings name only the examples those cases exercise.

## What It Does Not Prove

A registered file supplies no run result or verified conformance by itself. Local fixtures do not establish deployed cross-service behavior or complete browser journeys.

## Real Dependencies and Test Doubles

Inputs and external responses are controlled in process; this suite establishes no deployed service behavior.

## Must Not Be Doubled

The named contract validation or component behavior under assertion must use its actual implementation.
