فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): lock native runner audit-source guards
davoodmehraban89 committed
Oct 31, 2026 at 09:58 UTC
b26983ca17d1aa8bbc04f146bb88bde9310de2d0
1 file changed
+7
tests/ui-control-structure.test.mjs
+7
@@ -363,6 +363,13 @@ test('Q01: safe navigation audit distinguishes same-handler controls by label an
363
assert.ok(audit.includes("safeNavigate.test(action.handler)?'navigation':'filter'"));
364
});
365
366
+test('Q01: native WebView2 runner validates the exact injected audit source before execution', () => {
367
+ const runner=fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');
368
+ assert.ok(runner.includes("auditSource.split('const safeConfirmAction =').length-1,1"));
369
+ assert.ok(runner.includes("auditSource.includes('const deferredSafeActions=[]')"));
370
+ assert.ok(runner.includes("auditSource.includes('for(const group of deferredSafeActions)')"));
371
+});
372
+
373
test('Q01: native click audit separates unique action signatures from repeated tab instances', () => {
374
const audit = fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
375
const native = fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');