فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(a11y): require explicit label for partial invoice payment amount
davoodmehraban89 committed
Oct 31, 2026 at 10:08 UTC
90695b5d649ad8d3ecacf1567c811125b970c612
1 file changed
+7
tests/ui-control-structure.test.mjs
+7
@@ -375,6 +375,13 @@ test('Q01: native WebView2 runner validates the exact injected audit source befo
375
assert.ok(runner.includes("auditSource.includes('for(const group of deferredSafeActions)')"));
376
});
377
378
+test('Q01: partial-payment amount field has an explicit associated label', () => {
379
+ const view=fs.readFileSync(path.join(root,'src','views','InvoiceFormView.js'),'utf8');
380
+ assert.match(view,/label for="invPaidAmount"/);
381
+ assert.match(view,/id="invPaidAmount"/);
382
+ assert.match(view,/مبلغ پرداختشده/);
383
+});
384
+
385
test('Q01: native click audit separates unique action signatures from repeated tab instances', () => {
386
const audit = fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
387
const native = fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');