Commit cedf1e4
fix(graphql,test): explainInputs parser + textarea assertions for schemas-tab e2e
Two issues surfaced when the new policy-authoring (schemas tab) e2e tests
ran against a live axon-server:
1. axon-graphql/src/dynamic.rs: putSchema(input.explainInputs) entries
were wrapped in a synthetic { input: <entry> } object before being
handed to explain_policy_request_from_value. That extractor uses
input_object(value, "input") only as an error label — the second
argument is not dereferenced — so the wrapping caused the lookup of
`operation` to miss and return "operation must be a string".
Strip the wrap and pass each entry through directly.
2. ui/tests/e2e/policy-authoring.spec.ts: the happy-path test was using
toContainText against the textarea, but textarea content lives on
the `value` attribute (toHaveValue), and the patch fixture dry-run
was missing the patch JSON payload required by explain_patch_policy.
Switched to financeAgent for the update.allow rule plus a patch JSON
that crosses the large-invoice threshold so the
require-approval-large-invoice-update envelope decides
needs_approval with finance-approver.
Both schemas-tab specs and the new intent-audit-lineage audit-evidence
test pass against axon-cli/serve --no-auth in-memory. Adjacent specs
(mutation-intents, approval-inbox, graphql-policy-console,
mcp-envelope-preview, original policy-authoring) all green: 17/17.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f7d6adb commit cedf1e4
2 files changed
Lines changed: 23 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6693 | 6693 | | |
6694 | 6694 | | |
6695 | 6695 | | |
| 6696 | + | |
| 6697 | + | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
6696 | 6701 | | |
6697 | 6702 | | |
6698 | 6703 | | |
| |||
6703 | 6708 | | |
6704 | 6709 | | |
6705 | 6710 | | |
6706 | | - | |
| 6711 | + | |
6707 | 6712 | | |
6708 | 6713 | | |
6709 | 6714 | | |
6710 | | - | |
6711 | | - | |
6712 | | - | |
6713 | | - | |
6714 | | - | |
6715 | | - | |
6716 | | - | |
6717 | | - | |
6718 | | - | |
6719 | | - | |
6720 | 6715 | | |
6721 | 6716 | | |
6722 | 6717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
0 commit comments