feat(est): edit review summary in workflow

This commit is contained in:
2026-11-07 10:56:50 +09:00
parent cfe78e2e3b
commit db02fa9994
2 changed files with 24 additions and 1 deletions
@@ -1,6 +1,20 @@
from test_est_rea_parity import run
def test_review_summary_updates_the_print_document_and_active_settings():
result = run(
"math",
"""(()=>{
const handlers={},p=EstNative.empty();p.printSettings={form:'173',notes:'old'};
globalThis.document={addEventListener:(name,fn)=>handlers[name]=fn};
globalThis.EstApp={state:{project:p},change:fn=>fn(),render:()=>{}};
EstReview.install();handlers.change({target:{dataset:{reviewSummary:''},value:'review summary'}});
return {document:p.documents['173'],notes:p.printSettings.notes};
})()""",
)
assert result == {"document": "review summary", "notes": "review summary"}
def test_review_rejects_unallocated_fixed_amounts_and_ambiguous_targets():
result = run(
"math",