فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): update safe-action matcher contract after live-label fix
davoodmehraban89 committed
Oct 31, 2026 at 11:21 UTC
3a2b96df08e40ce982e2092dad2c9378922c5905
1 file changed
+3
-2
tests/ui-control-structure.test.mjs
+3
-2
@@ -390,10 +390,11 @@ test('Q01: filter clicks are deferred until row-scoped confirmation and editor p
390
assert.doesNotMatch(audit,/safeOpen = .*changeStatus|safeOpen = .*_printInvoice/);
391
});
392
393
-test('Q01: safe navigation audit distinguishes same-handler controls by label and tag', () => {
393
+test('Q01: safe navigation audit re-resolves same-handler controls by stable tag', () => {
394
const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
395
assert.ok(audit.includes('handler:handler(el),label:name(el),tag:el.tagName.toLowerCase()'));
396
- assert.ok(audit.includes('handler(x)===action.handler && name(x)===action.label'));
396
+ assert.ok(audit.includes('handler(x)===action.handler && x.tagName.toLowerCase()===action.tag'));
397
+ assert.ok(audit.includes('for(let attempt=0;attempt<12 && !el;attempt++)'));
398
assert.ok(audit.includes('tab.click();await wait(160);'));
399
assert.ok(audit.includes("safeNavigate.test(action.handler)?'navigation':'filter'"));
400
});