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

fix(native-test): match malicious expense option by exact value, skipping the empty filter placeholder

davoodmehraban89 committed Oct 31, 2026 at 00:39 UTC 2724fa7402c02ae6d856682a7f07c1b24823283a
1 file changed +1 -1
tests/windows-vm-ui-interaction-audit-browser.js
+1 -1
@@ -385,7 +385,7 @@
385 const scratch=document.createElement('div');
386 scratch.innerHTML=expenseView.renderContent();
387 if(scratch.querySelector('img') || scratch.querySelector('script') ||
388 - scratch.querySelector('select[aria-label="سرفصل سند"] option')?.value!==hostileCategory ||
388 + ![...scratch.querySelectorAll('select[aria-label="سرفصل سند"] option')].some(o=>o.value===hostileCategory) ||
389 !scratch.textContent.includes(hostileCell)) {
390 throw Error('Untrusted expense list fields created executable markup or corrupted category value');
391 }