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

fix(q01): retain action lookup key after node-level deduplication

davoodmehraban89 committed Oct 31, 2026 at 21:50 UTC b4a0fe5e4bd5873da0aa4bb22af333514a0836ab
1 file changed +3 -2
tests/windows-vm-ui-interaction-audit-browser.js
+3 -2
@@ -139,6 +139,7 @@
139 async function press(el, route, section, category) {
140 if (seenClick.has(el)) return;
141 seenClick.add(el);
142 + const k=sig(el,route,section);
143 const row=all.get(k);
144 const before=target().innerHTML;
145 const beforeModal=!!document.querySelector('.modal-backdrop');
@@ -787,8 +788,8 @@
788 const initialRows=itemsBody.querySelectorAll('tr').length;
789 registerControl(addRow,route,ctx.section+'/modal');
790 await press(addRow,route,ctx.section+'/modal','open');
790 - // _renderItems replaces tbody.innerHTML. Re-query the live node;
791 - // the original itemsBody reference is detached after a render.
791 + // Re-query after the row render so the assertion reads the current
792 + // modal's live table rather than relying on pre-click row children.
793 const currentItemsBody=overlay.querySelector('#itemsBody');
794 const afterAdd=currentItemsBody?.querySelectorAll('tr').length ?? 0;
795 if(afterAdd!==initialRows+1){