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