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

test(q01): annotate native UI audit stages for deterministic failure diagnosis

davoodmehraban89 committed Oct 31, 2026 at 08:17 UTC 52e8296355ef671c816199e01250808ceffc769e
1 file changed +5
tests/windows-vm-ui-interaction-audit-browser.js
+5
@@ -9,6 +9,7 @@
9 'dashboard','invoices','products','contacts','treasury',
10 'cheques','expenses','reports','accounting','settings'
11 ];
12 + window.__Q01_AUDIT_STAGE='audit-start';
13 const failures = [];
14 const inventories = [];
15 const clicks = [];
@@ -615,6 +616,7 @@
616 .filter(el=>!el.disabled && (safeNavigate.test(handler(el)) || safeFilter.test(handler(el))))
617 .map(el=>handler(el)))];
618 for (const action of safeActions) {
619 + window.__Q01_AUDIT_STAGE='safe-action:'+route+':'+action;
620 await go(route);
621 if (ctx.tabAction) {
622 const tab=clickables(target()).find(el=>handler(el)===ctx.tabAction);
@@ -638,6 +640,7 @@
640 .filter(el=>!el.disabled && safeConfirm.test(handler(el)))
641 .map(el=>handler(el)))].slice(0,30);
642 for(const action of confirmActions){
643 + window.__Q01_AUDIT_STAGE='confirm-cancel:'+route+':'+action;
644 await go(route);
645 if(ctx.tabAction){
646 const tab=clickables(target()).find(el=>handler(el)===ctx.tabAction);
@@ -678,6 +681,7 @@
681 .filter(el=>!el.disabled && safeOpen.test(handler(el)))
682 .map(el=>handler(el)))].slice(0,30);
683 for (const action of openActions) {
684 + window.__Q01_AUDIT_STAGE='open-modal:'+route+':'+action;
685 await go(route);
686 if (ctx.tabAction) {
687 const tab=clickables(target()).find(el=>handler(el)===ctx.tabAction);
@@ -817,6 +821,7 @@
821 missingAccessibleName:slice.filter(x=>!x.hasAccessibleName).length
822 };
823 }
824 + window.__Q01_AUDIT_STAGE='audit-completed';
825 return {
826 environment:'installed-Windows-Tauri-WebView2-synthetic-VM',
827 shellResults,