فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(a11y): require explicit label for partial invoice payment amount
davoodmehraban89 committed
Oct 31, 2026 at 10:08 UTC
0205f281035212b80cd6ca8cf44b112111282d21
1 file changed
+7
tests/ui-control-structure.test.mjs
+7
@@ -383,6 +383,13 @@ test('Q01: safe navigation audit distinguishes same-handler controls by label an
383
assert.ok(audit.includes("safeNavigate.test(action.handler)?'navigation':'filter'"));
384
});
385
386
+test('Q01: partial-payment amount field has an explicit associated label', () => {
387
+ const view=fs.readFileSync(path.join(root,'src','views','InvoiceFormView.js'),'utf8');
388
+ assert.match(view,/label for="invPaidAmount"/);
389
+ assert.match(view,/id="invPaidAmount"/);
390
+ assert.match(view,/مبلغ پرداختشده/);
391
+});
392
+
393
test('Q01: native click audit separates unique action signatures from repeated tab instances', () => {
394
const audit = fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
395
const native = fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');