---
id: TST-ACC-TRX-332
title: Saved query parameters suite
kind: browser-lifecycle
product_area: accounting
module: transactions
revision: 1
status: draft
source_sha:
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: react-console
files:
  - e2e/mock/saved-query-parameters.spec.ts
implements: []
implements_parts: []
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: A browser context and suite-controlled mocked responses.
provenance: test
source: 'react-console:e2e/mock/saved-query-parameters.spec.ts'
evidence:
  - provenance: test
    source: 'react-console:e2e/mock/saved-query-parameters.spec.ts'
    assertion_titles:
      - saved queries that ask for values when they run
      - >-
        a criterion marked Ask when run is saved, and the reopened query asks
        for its value before it runs
      - >-
        a missing value is refused by the console beside its input, and no run
        is sent
      - >-
        in the designer, an emptied value keeps the last results and says what
        is missing
      - >-
        a query with no ask-when-run criteria shows no Parameters panel and runs
        as it always has
    imports:
      - 'import { expect, test, type Page } from "@playwright/test"'
      - 'import { onRoute } from "../support/route-match"'
      - 'import { mockUrl, routes } from "../support/routes"'
    test_double_declarations:
      - ' * MOCK: saved queries that ask for values when they run ("Ask when run"), end to end in mock mode'
      - ' * (`playwright.mock.config.ts`).'
      - ' * the value before it runs. The run of a saved query goes to mock mode''s saved-query run route, which'
      - 'import { mockUrl, routes } from "../support/routes"'
      - const AS_CUSTOMER = "mockIdentity=customer"
      - >-
        const CONTACTS_SINCE = mockUrl(routes.query("q_contacts_since",
        AS_CUSTOMER))
      - '    await page.goto(mockUrl(routes.newQuery({ type: "contacts", mockIdentity: "customer" })))'
      - '    await page.goto(mockUrl(routes.queries({ q: name, mockIdentity: "customer" })))'
      - '    await page.goto(mockUrl(routes.newQuery({ type: "contacts", mockIdentity: "customer" })))'
      - '    await page.goto(mockUrl(routes.queries({ q: "Overdue Invoices Over $500", mockIdentity: "customer" })))'
---

# Saved query parameters suite

## Verification Boundary

The suite exercises console screens and their requests in a browser with controlled responses. Registration records the existing executable file; it does not report a run or establish product approval.

## What This Suite Proves

The executable assertions exercise this module, but no capability or feature scenario binding is established for this file. Its individual assertion titles remain in the evidence register for subsequent mapping.

## What It Does Not Prove

Controlled browser responses do not establish service authorization, database bounds, processor behavior or financial persistence. An unbound feature chain remains proposed, and this registration carries no execution result.

## Real Dependencies and Test Doubles

The real browser and console components run against suite-controlled data or responses. The evidence register identifies the mock setup; those returned values are assumptions of the screen test.

## Must Not Be Doubled

The screen components, their validation and their outgoing request construction are the verification boundary and must remain real. Service financial integrity needs an additional suite with real persistence.
