فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(a08): expose actual product pagination state on native failure
Davood Mehraban committed
Nov 23, 2026 at 18:17 UTC
8059b5b8dab12ad79921e5f5feadc147bbb789f6
1 file changed
+6
-1
tests/windows-vm-native-performance-browser.js
+6
-1
@@ -90,7 +90,12 @@
90
const firstPageRows = region.querySelectorAll('tbody tr').length;
91
const firstPageHtml = region.innerHTML.length;
92
if (!pagination || firstPageRows !== 100 || firstPageHtml > 250000) {
93
- throw Error('A08 product report must render a bounded 100-row page for 10k products');
93
+ throw Error('A08 product report must render a bounded 100-row page for 10k products: '+
94
+ JSON.stringify({pagination:!!pagination,firstPageRows,firstPageHtml,
95
+ pageSummary:region.querySelector('[data-report-page-summary]')?.textContent,
96
+ reportText:region.textContent?.trim().slice(0,180),
97
+ visibleProducts:await db.count('products'),
98
+ visibleInvoices:await db.count('invoices')}));
99
}
100
const pageTwoStart = performance.now();
101
window.ReportsView._setProductsPage(2);