فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): fail native audit on dashboard overflow or inaccessible cheque scroll region
davoodmehraban89 committed
Oct 31, 2026 at 08:10 UTC
c850081072f65b998242605cbf34c7441d982f92
1 file changed
+21
tests/windows-vm-ui-interaction-audit-browser.js
+21
@@ -742,6 +742,27 @@
742
}
743
}
744
await FINORA.Router.go('dashboard');
745
+ const dashboardGrid=target()?.querySelector('.dash-grid-main');
746
+ if(dashboardGrid && dashboardGrid.scrollWidth>dashboardGrid.clientWidth+1){
747
+ failures.push({route:'dashboard',kind:'responsive-horizontal-overflow',
748
+ clientWidth:dashboardGrid.clientWidth,scrollWidth:dashboardGrid.scrollWidth});
749
+ }
750
+ await FINORA.Router.go('cheques');
751
+ const chequeScroll=target()?.querySelector('.cheques-table-scroll');
752
+ if(!chequeScroll || chequeScroll.tabIndex!==0 ||
753
+ chequeScroll.getAttribute('role')!=='region' ||
754
+ !chequeScroll.getAttribute('aria-label') ||
755
+ chequeScroll.scrollWidth<=chequeScroll.clientWidth){
756
+ failures.push({route:'cheques',kind:'cheque-table-horizontal-scroll-accessibility',
757
+ found:!!chequeScroll,tabIndex:chequeScroll?.tabIndex??-1,
758
+ role:chequeScroll?.getAttribute('role')||'',
759
+ overflow:!!chequeScroll && chequeScroll.scrollWidth>chequeScroll.clientWidth});
760
+ } else {
761
+ chequeScroll.focus();
762
+ if(document.activeElement!==chequeScroll){
763
+ failures.push({route:'cheques',kind:'cheque-table-scroll-not-keyboard-focusable'});
764
+ }
765
+ }
766
const rows=[...all.values()];
767
// A route/tab may render the SAME action in multiple UI states. Counting
768
// each instance as a different button exaggerated the initial denominator.