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

test(q01): fail non-idempotent controls with no visible effect

davoodmehraban89 committed Oct 31, 2026 at 22:04 UTC f52be2e99f2196f4775ee8ebce5bebf395ed91d0
1 file changed +5
tests/windows-vm-ui-interaction-audit-browser.js
+5
@@ -169,6 +169,11 @@
169 if (expectedNoop) {
170 if (row) row.reason='idempotent-click-on-already-selected-or-clear-filter-state';
171 } else {
172 + // A non-idempotent safe action that produced no observable state
173 + // change is a failed control, not a successful click. Propagate this
174 + // into uniqueActionFailed so the native acceptance gate cannot hide
175 + // it behind the separate problems array.
176 + if (row) {row.status='failed';row.reason='no-observable-DOM-change';}
177 failures.push({route,section,kind:'no-visible-change',
178 label:name(el),handler:handler(el).slice(0,170)});
179 }