فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): assert safe UI probes distinguish same-handler controls
davoodmehraban89 committed
Oct 31, 2026 at 09:55 UTC
ad08e7d323e6743ac2fbf10a327dd749ede6ee18
1 file changed
+8
tests/ui-control-structure.test.mjs
+8
@@ -370,6 +370,14 @@ test('Q01: filter clicks are deferred until row-scoped confirmation and editor p
370
assert.doesNotMatch(audit,/safeOpen = .*changeStatus|safeOpen = .*_printInvoice/);
371
});
372
373
+test('Q01: safe navigation audit distinguishes same-handler controls by label and tag', () => {
374
+ const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
375
+ assert.ok(audit.includes('handler:handler(el),label:name(el),tag:el.tagName.toLowerCase()'));
376
+ assert.ok(audit.includes('handler(x)===action.handler && name(x)===action.label'));
377
+ assert.ok(audit.includes('tab.click();await wait(160);'));
378
+ assert.ok(audit.includes("safeNavigate.test(action.handler)?'navigation':'filter'"));
379
+});
380
+
381
test('Q01: native click audit separates unique action signatures from repeated tab instances', () => {
382
const audit = fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
383
const native = fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');