فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(q01): prevent repeated WebView2 evaluation lexical collisions

davoodmehraban89 committed Oct 31, 2026 at 11:11 UTC 5cbb2b5c33478e0ae7c50a7b659f78a8401cd36b
1 file changed +7
tests/ui-control-structure.test.mjs
+7
@@ -137,6 +137,13 @@ test('Q01: native CDP diagnostics preserve the failing audit action and exceptio
137 }
138 });
139
140 +test('Q01: repeated WebView2 audit evaluation avoids generic global lexical names', () => {
141 + const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
142 + assert.match(audit,/const q01TextOnlyConfirmCard_20261031=/);
143 + assert.doesNotMatch(audit,/const safeConfirm\s*=/);
144 + assert.ok(audit.includes('one long-lived WebView2 realm'));
145 +});
146 +
147 test('Q01: dashboard and cheque tables remain usable in the installed narrow content pane', () => {
148 const styles=fs.readFileSync(path.join(root,'src','styles','main.css'),'utf8');
149 const cheques=fs.readFileSync(path.join(root,'src','views','ChequesView.js'),'utf8');