فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(native): scope transfer toast dismissal assertion to current notice
Davood Mehraban committed
Nov 23, 2026 at 09:14 UTC
c92307369f6606334c6c7a0aea9f0030008d3f2d
1 file changed
+3
-1
tests/windows-vm-native-functional-matrix.cjs
+3
-1
@@ -896,9 +896,11 @@ async function nativeInactiveBankSettlementGuard() {
896
let toast=[...document.querySelectorAll('.toast-error')].find(x=>x.textContent.includes('غیرفعال'));
897
check(toast,'Inactive bank transfer did not display rejection');
898
check(JSON.stringify(await counts())===JSON.stringify(before),'Rejected transfer wrote journals or cash');
899
+ // Error toasts from earlier native scenarios intentionally persist until
900
+ // dismissed. Assert only this rejected-transfer notice was closed.
901
toast.querySelector('.toast-close')?.click();
902
FINORA.Modal.close();
901
- check(!document.querySelector('.toast-error'),'Expected transfer toast not dismissed');
903
+ check(!toast.isConnected,'Expected transfer toast not dismissed');
904
905
// With no active bank, the real cheque status UI must reject settlement
906
// without changing posted status or writing a cash receipt.