patchwise-agent-studio / tests /cases /CANARY-AP.yaml
EnergyVenom's picture
Astra: business actions and canary, retire scenarios, 26D tax line and messages (7c9b62a23d0a)
aca339e verified
Raw History Blame Contribute Delete
2.41 kB
# Canary of the Payables business actions (automation/src/fusion/steps.ts): before a live run on a Fusion pod, the
# co-worker runs this once (coworker/graph/nodes/execute.py run_canaries). A step that fails here means that action no
# longer works on the pod (a screen or REST change): the run's scenarios that use it are reported as blocked by the
# canary, a script change to maintain, not as product defects. Cheapest valid order: one invoice is created, validated,
# found, checked and cancelled. expect_hold is not run (a hold needs a second, unbalanced invoice); expect_no_holds
# proves the holds list it reads. Not a library scenario: the case loader skips `canary: true`.
# In a canary, create_invoice tries the pod's Payables data sets (business unit, supplier, site, account) in turn
# until one saves and validates, and records that set as working: the co-worker learns it for the pod, so the run's
# scenarios and the next run try it first.
id: CANARY-AP
title: "Payables business actions still work on this pod (canary)"
runner: steps
canary: true
module: AP
process: Canary
priority: P1
priority_rationale: "Proves each Payables business action before the scenarios built from them run."
map_ids: []
verification: VERIFIED on a real Fusion pod when its run passes
approval_status: approved - canary of the business actions
type: happy
tags:
- payables
- canary
- fusion
- step-runner
roles:
- payables_user
preconditions:
- The test user can create, validate and cancel Payables invoices in the business unit.
data_recipes: []
test_values:
amount: "100"
steps:
- n: 1
action: sign_in
expected: The Fusion home page opens for the test user.
- n: 2
action: create_invoice
value: "{{tv.amount}}"
expected: An invoice with one Item line is saved without errors.
- n: 3
action: validate_invoice
expected: The invoice validates.
- n: 4
action: find_invoice
expected: Manage Invoices finds exactly this invoice by its number.
- n: 5
action: expect_invoice
status: Validated
amount_at_least: "{{tv.amount}}"
expected: Fusion has the invoice as Validated, for the amount plus any tax.
- n: 6
action: expect_no_holds
expected: The invoice carries no holds.
- n: 7
action: cancel_invoice
expected: The invoice is cancelled and shows Canceled.
expected_result: Every Payables business action works on this pod.