---
id: TST-COM-ORD-135
title: The order list query
kind: unit
product_area: commerce
module: orders
revision: 1
status: draft
source_sha:
  services-commerce: c8b66a98e2490617aec38ba5c8165dd9bd0a8f9b
repository: services-commerce
files:
  - modules/orders/tests/unit/orders/orders-list-query.spec.js
implements:
  - ATS-COM-ORD-010-01
  - ATS-COM-ORD-010-02
  - ATS-COM-ORD-010-04
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: 'services-commerce:modules/orders/tests/unit/orders/orders-list-query.spec.js'
    test_cases:
      - 'is the buyer’s list when a buyer is named, with its kind and profile filters'
      - 'is the workspace’s list when no buyer is named, 50 a page from the start'
      - carries the search and every filter of the workspace’s list
      - refuses a page above 200
      - refuses a buyer kind without an id
      - refuses a buyer id without a kind
      - refuses a search beside a buyer
      - refuses a profile filter without a buyer
      - refuses a status that is not one of the order’s
      - refuses a payment that is neither paid nor unpaid
      - refuses a date that is not on the calendar
      - refuses a date that is not YYYY-MM-DD
      - refuses a search term longer than 100 characters
      - gives a portal member no workspace list
scenario_coverage:
  - scenario: ATS-COM-ORD-010-01
    test_cases:
      - refuses a page above 200
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
  - scenario: ATS-COM-ORD-010-02
    test_cases:
      - refuses a search term longer than 100 characters
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
  - scenario: ATS-COM-ORD-010-04
    test_cases:
      - refuses a buyer kind without an id
      - refuses a search beside a buyer
      - refuses a profile filter without a buyer
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
dependency_evidence:
  provenance: test
  source: 'services-commerce:modules/orders/tests/unit/orders/orders-list-query.spec.js'
  declared_by_test: 'the query validation and the mapper, the actor refusal. Doubled: nothing.'
---

# The order list query

## Verification Boundary

The unit suite checks the named contract or helper with controlled inputs.

## What This Suite Proves

The registered cases check the order list query 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.
