فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): cover invoice payment label and deferred safe-action re-resolution
davoodmehraban89 committed
Oct 31, 2026 at 11:20 UTC
cf8501ea10db56c9e4b08468b6ebe904def8e867
1 file changed
+8
-1
tests/ui-control-structure.test.mjs
+8
-1
@@ -158,6 +158,13 @@ test('Q01: dashboard and cheque tables remain usable in the installed narrow con
158
assert.match(native,/cheque-table-horizontal-scroll-accessibility/);
159
});
160
161
+test('Q01: deferred safe actions survive live label changes and slow tab rendering', () => {
162
+ const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
163
+ assert.match(audit,/for\(let attempt=0;attempt<12 && !el;attempt\+\+\)/);
164
+ assert.match(audit,/handler\(x\)===action\.handler && x\.tagName\.toLowerCase\(\)===action\.tag/);
165
+ assert.doesNotMatch(audit,/handler\(x\)===action\.handler && name\(x\)===action\.label/);
166
+});
167
+
168
test('Q01: native audit verifies safe routes, filters, edit previews and cancel-only destructive prompts', () => {
169
const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
170
for(const token of ['safeNavigate','safeFilter','safeOpen','safeConfirmAction',
@@ -235,7 +242,7 @@ test('Q01: remaining financial grid, reporting and settings inputs announce thei
242
const read=name=>fs.readFileSync(path.join(root,'src','views',name+'.js'),'utf8');
243
const cases=[
244
['ReportsView',['aria-label="از تاریخ گزارش"','aria-label="تا تاریخ گزارش"']],
238
- ['InvoiceFormView',['aria-label="جستجوی کالای ردیف فاکتور"','aria-label="نوع تخفیف ردیف"','aria-label="وضعیت پرداخت فاکتور"']],
245
+ ['InvoiceFormView',['aria-label="جستجوی کالای ردیف فاکتور"','aria-label="نوع تخفیف ردیف"','aria-label="وضعیت پرداخت فاکتور"','aria-label="مبلغ پرداختشده"']],
246
['AccountingView',['aria-label="حساب ردیف سند"','aria-label="مبلغ بدهکار ردیف"','aria-label="مبلغ بستانکار ردیف"','aria-label="شرح ردیف سند"','for="acStWarehouse"']],
247
['TreasuryView',['aria-label="جستجوی تراکنشهای خزانه"']],
248
['ChequesView',['aria-label="جستجوی چک"','aria-label="نوع چک"','aria-label="وضعیت چک"']],