1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
schemaVersion: 1
name: checkout-submit
workflowVersion: 1.0.0
description: Review and submit a checkout with explicit confirmation input.
inputs:
order_id:
type: string
required: true
maxLength: 128
confirmation_token:
type: string
required: true
budgets:
maxSteps: 4
maxDurationMs: 45000
maxRetries: 0
maxExtractedBytes: 4096
steps:
- id: open-checkout
action: navigate
url: https://example.test/checkout/${inputs.order_id}
timeoutMs: 20000
transaction: read_only
expect:
visible: role=heading;name=Checkout
- id: review-total
action: observe
transaction: read_only
- id: submit-checkout
action: click
target: role=button;name=Submit order
transaction: non_idempotent
idempotencyKey: checkout-submit-${inputs.order_id}
expect:
textContains: Order submitted
- id: verify-submit
action: observe
transaction: read_only
terminalCondition:
textContains: Order submitted
outputs: