فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(native-test): match malicious expense option by exact value, skipping the empty filter placeholder
davoodmehraban89 committed
Oct 31, 2026 at 00:39 UTC
0c4c209255f4b372f69842a7479fb9f588d0db23
1 file changed
+1
-1
tests/windows-vm-ui-interaction-audit-browser.js
+1
-1
@@ -357,7 +357,7 @@
357
const scratch=document.createElement('div');
358
scratch.innerHTML=expenseView.renderContent();
359
if(scratch.querySelector('img') || scratch.querySelector('script') ||
360
- scratch.querySelector('select[aria-label="سرفصل سند"] option')?.value!==hostileCategory ||
360
+ ![...scratch.querySelectorAll('select[aria-label="سرفصل سند"] option')].some(o=>o.value===hostileCategory) ||
361
!scratch.textContent.includes(hostileCell)) {
362
throw Error('Untrusted expense list fields created executable markup or corrupted category value');
363
}