فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(a11y): verify invoice settings labels focus associated controls in real WebView2
davoodmehraban89 committed
Oct 30, 2026 at 23:30 UTC
8a125ab72efd512aff2a544a412da4e7f5e569e2
1 file changed
+11
-1
tests/windows-vm-ui-interaction-audit-browser.js
+11
-1
@@ -186,9 +186,19 @@
186
document.querySelectorAll('.toast .toast-close').forEach(button=>button.click());
187
const toastResults={transientLimit:3,importantErrorsRemain:true,
188
dismissButtonsWork:document.querySelectorAll('.toast').length===0};
189
+ await FINORA.Router.go('settings');
190
+ await wait(100);
191
+ for(const fieldId of ['invoiceNumberingMode','invoiceNextNumber']){
192
+ const label=document.querySelector('label[for="'+fieldId+'"]');
193
+ const field=document.getElementById(fieldId);
194
+ if(!label || !field) throw Error('invoice settings field label missing: '+fieldId);
195
+ label.click();await wait(20);
196
+ if(document.activeElement!==field) throw Error('clicking settings label did not focus: '+fieldId);
197
+ }
198
+ await FINORA.Router.go('dashboard');
199
const shellResults={keyboardReachableSidebarLinks:navLinks.length,
200
sidebarCollapseClickAndPersistence:true,themeToggleClickAndPersistence:true,
191
- activeRouteAriaCurrent:true,modalKeyboard,toastResults};
201
+ activeRouteAriaCurrent:true,modalKeyboard,toastResults,settingsLabelFocus:true};
202
for (const route of routes) {
203
await go(route);
204
const active=[...document.querySelectorAll('#sidebarMenu [aria-current="page"]')];