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

test(invoice): require deterministic read-only table rendering seam

davoodmehraban89 committed Oct 31, 2026 at 00:25 UTC aca0576cb3919c8374ebab58ab5a04914d0a75d9
1 file changed +2
tests/ui-control-structure.test.mjs
+2
@@ -160,6 +160,8 @@ test('A03: financial list views encode imported record IDs and textual values',
160 }
161 const invoice=fs.readFileSync(path.join(root,'src','views','InvoicesView.js'),'utf8');
162 assert.ok(invoice.includes('${this._esc(k.label)}'), 'unknown imported invoice kind is not HTML escaped');
163 + assert.ok(invoice.includes('renderTable(invoices = cache.invoices)'),
164 + 'native adversarial test needs an isolated read-only invoice render fixture');
165 const expenses=fs.readFileSync(path.join(root,'src','views','ExpensesView.js'),'utf8');
166 assert.ok(expenses.includes('this._esc(JSON.stringify(String(e.id ??'));
167 });