patchwise-agent-studio / tests /cases /CANARY-GL.yaml
EnergyVenom's picture
Astra: PO/GL actions, usage coverage, assisted sign-in, self-healing, recorder, new top navigation and theme (172a4e22a2bf)
fb62a97 verified
Raw History Blame Contribute Delete
2.32 kB
# Canary of the General Ledger 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 journal is created, posted,
# found, checked and reversed. Its debit and credit are the same amount on the same account, so the posted journal
# and its reversal leave every balance as it was; clean-up deletes what stays unposted (the reversal).
# create_journal tries the pod's candidates where Fusion leaves a value empty or refuses one (ledger, period, category,
# account) and records the ones that work: the co-worker learns them for the pod, so the run's scenarios and the next
# run try them first. Not a library scenario: the case loader skips `canary: true`.
id: CANARY-GL
title: "General Ledger business actions still work on this pod (canary)"
runner: steps
canary: true
module: GL
process: Canary
priority: P1
priority_rationale: "Proves each General Ledger 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:
- general-ledger
- canary
- fusion
- step-runner
roles:
- general_accountant
preconditions:
- The test user can create, post and reverse journals in the ledger, in an open period.
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_journal
value: "{{tv.amount}}"
expected: A balanced journal with one debit and one credit line is saved without errors.
- n: 3
action: post_journal
expected: Fusion posts the journal.
- n: 4
action: find_journal
expected: Manage Journals finds exactly this journal batch by its name.
- n: 5
action: expect_journal
posted: true
expected: Fusion has the journal batch as posted.
- n: 6
action: reverse_journal
expected: Fusion makes the journal's reversal.
expected_result: Every General Ledger business action works on this pod.