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