فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): assert native WebView2 executes the current guarded UI audit source
davoodmehraban89 committed
Oct 31, 2026 at 09:58 UTC
32dc9221cd201e761ea3e0c972477942f79fb89f
1 file changed
+6
tests/windows-vm-installed-tauri-cdp.cjs
+6
@@ -397,6 +397,12 @@ async function connect(url) {
397
// guarded by the real synthetic functional matrix already run above.
398
const auditSource = fs.readFileSync(
399
path.join(__dirname, 'windows-vm-ui-interaction-audit-browser.js'), 'utf8');
400
+ assert.equal(auditSource.split('const safeConfirmAction =').length-1,1,
401
+ 'native UI audit must define its cancel-only destructive matcher exactly once');
402
+ assert.ok(auditSource.includes('const deferredSafeActions=[]'),
403
+ 'native UI audit must defer filters until row-scoped probes finish');
404
+ assert.ok(auditSource.includes('for(const group of deferredSafeActions)'),
405
+ 'native UI audit must execute queued filters after editor/confirmation probes');
406
const audit = await cdp.evaluate(auditSource, 240000);
407
assert.equal(audit.environment, 'installed-Windows-Tauri-WebView2-synthetic-VM');
408
assert.equal(audit.routesVisited, 10);