Website visual capture
MobileWebsiteVisualHarness renders deterministic production components for
homepage proof candidates. Detox launches the ordinary app target with
clcWebsiteVisualHarness, selects a named fixture state, drives the real
control needed to expose that state, and stores ignored PNG candidates under
artifacts/website-visual/.
For a dedicated existing simulator, set DETOX_IOS_DEVICE_ID to its UDID.
This takes precedence over the device-type selector and avoids capture runs
being allocated to another simulator with the same model.
Real action displays
The compiled-system-message and cost-report captures do not invent modal content in TypeScript. Refresh their fixture with:
python scripts/generate_website_action_fixtures.py
The generator:
- creates a real
AgentApplication; - loads the production system-message and cost-tracking plugins;
- creates a persisted session;
- executes
show_compiled_system_messagethrough the feature-action path; - seeds generic deterministic records through the real SQLite cost store;
- executes
show_cost_reportthrough the application-action path; - writes sanitized UI elements, action definitions, and response envelopes
to
src/testing/fixtures/websiteActionDisplays.json.
The captured app still opens the production session actions menu and sends the
selected element through runApplicationAction. The fixture backend returns
the generated real response envelope, and the production action-display modal
renders it.
Cost values are illustrative. Project/session names are generic, and the fixture is checked for local paths and credential-like fields.
Revised proof states
compiled: real Show compiled system message action and modal.cost: provider usage footer behind the real Cost report action modal.vibe: the configuredzaiprofile, identified as GLM-5.3 Flash through Z.ai, with attached source files and expanded pre-execution reasoning.workspaces: production session list withtodo,in_progress, anddone, header pin state, a fresh pinned-action preference namespace, and the default-pinned status rich list open. The first row reuses the Starlette compatibility title/subtitle from the conversation fixture, and its descriptive slug avoids exposing a raw session UUID.message-actions: the terminal Starlette/Codex assistant message with the production Message actions menu open. The capture scrolls to the bottom and targets the terminal message's action trigger in the native accessibility order.composer-active: active request with the production Composer actions menu, model/reasoning/web-search controls, hard cancel, and soft cancel.system-template: authored System-role instruction template with unresolved placeholders followed by its user request.home: production Home screen with deterministic local Watchlist, notes, recent sessions, saved connections, and request states.connections: the ordinary pre-connection application screen, captured without the website harness so the real Manual Address, Automatic Discovery, Bridge Service, and Cloud Agent Link choices remain visible.
The workspaces capture now also supplies deterministic transient request
states. Its workspaces-list-<theme>.png source is taken before the status
selection modal opens; workspaces-<theme>.png retains the modal state.
Select a bounded subset without changing the capture test:
CLC_WEBSITE_VISUAL_KINDS=composer-active,message-actions,workspaces,system-template,home,connections \
npm run detox:capture:website-visual:ios
Do not promote these captures directly. Homepage composition, annotations, device frames, review, source promotion, optimization, and binding are owned by the landing-page visual asset workflow.