feat(est): edit review summary in workflow
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user