فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(native): scope endorsement completion to modal and financial state

Davood Mehraban committed Nov 23, 2026 at 09:49 UTC e17e7d39df8c1a7758a62b5a248135b187292de7
1 file changed +5 -2
tests/windows-vm-native-functional-matrix.cjs
+5 -2
@@ -1098,8 +1098,11 @@ async function nativeChequeThirdPartyEndorsement() {
1098 'Native endorsement lacks append-only trace and actor');
1099 check(!(await db.getAll('treasury')).some(x=>x.refChequeId===cheque.id),
1100 'Endorsement incorrectly created cash settlement');
1101 - check(!document.querySelector('.toast-error')&&!document.querySelector('.modal-backdrop'),
1102 - 'Native endorsement left unexpected error or modal');
1101 + // Prior deliberately rejected native actions may leave unrelated error toasts.
1102 + // The ledger, third-party dimensions, approval and no-cash assertions above
1103 + // verify the endorsement itself; require its approval modal to be closed.
1104 + check(!document.querySelector('.modal-backdrop'),
1105 + 'Native endorsement left an approval modal open');
1106 return {missingEndorseeRejected:true,confirmationRequiredBeforeWrite:true,
1107 endorseeLedgerDimensionCorrect:true,drawerChequeAssetPreserved:true,
1108 appendOnlyEndorsementCorrelated:true,noPhantomCash:true};