سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 23:15 UTC
test(adr216): classify only financial assertion mismatch as expected RED
davoodmehraban89 committed
Nov 22, 2026 at 08:40 UTC
dec68c030189b0d6733443f8f3a6e1715844346f
1 file changed
+2
-2
scripts/accounting-document-workflow.spec.js
+2
-2
@@ -945,7 +945,6 @@ test('contact operational balance reflects a saved unallocated supplier payment
945
// test.fail is a transparent temporary xfail, NOT a product PASS. Remove
946
// annotations only after the linked-draft lifecycle works end-to-end.
947
test('P0 #229 expected RED: purchase Save must not auto-post',async({page})=>{
948
- test.fail(true,'#229: current purchase Save immediately posts without separate authorization');
948
const server=fakeServer();
949
await installHarness(page,server);
950
await authenticatedMockBrowser(page);
@@ -984,6 +983,7 @@ test('P0 #229 expected RED: purchase Save must not auto-post',async({page})=>{
983
};
984
// CURRENT: posted, posted, no linked draft, one posted voucher, one autopost.
985
// REQUIRED: business source + linked draft; no final number/posted voucher.
986
+ test.fail(true,'#229: Save invokes automatic posting instead of persisted linked draft');
987
expect(observed).toEqual({
988
documentStatus:'draft',accountingStatus:'draft',hasLinkedDraft:true,
989
postedVouchers:0,automaticPostCalls:0
@@ -991,7 +991,6 @@ test('P0 #229 expected RED: purchase Save must not auto-post',async({page})=>{
991
});
992
993
test('P0 #229 expected RED: linked journal draft stays draft for both sales and purchases',async({page})=>{
994
- test.fail(true,'#229: sale treats any link as posted; purchase labels a linked draft legacy_review');
994
const server=fakeServer();
995
await installHarness(page,server);
996
await authenticatedMockBrowser(page);
@@ -1015,5 +1014,6 @@ test('P0 #229 expected RED: linked journal draft stays draft for both sales and
1014
voucherStates:getMyJournalVouchers().filter(v=>v.id.endsWith('_JV_DRAFT')).map(v=>v.status)
1015
};
1016
});
1017
+ test.fail(true,'#229: linked draft misclassified in sale and purchase status selectors');
1018
expect(observed).toEqual({sale:'draft',purchase:'draft',voucherStates:['draft','draft']});
1019
});