سامانه صدور فاکتور و حسابداری
test(print): protect clean pro-forma invoice output
davoodmehraban89 committed
Oct 12, 2026 at 09:48 UTC
d864a5eb2d4897b366530b42c7be6d8d79184c64
1 file changed
+2
scripts/phase0-invoice-persistence.spec.js
+2
@@ -107,6 +107,8 @@ test('F0-03 isolated invoice save → mock-server sync → reload → edit → r
107
await page.evaluate(id=>renderAndPrintDirect(id),savedId);
108
await expect(page.locator('#printable-invoice')).toContainText('QA-PINV-۰۰۰۱');
109
await expect(page.locator('#printable-invoice')).toContainText('۴٬۵۰۰');
110
+ await expect(page.locator('#printable-invoice')).not.toContainText('پیشنویس — غیرقطعی');
111
+ await expect(page.frameLocator('#finora-print-frame').locator('#finora-print-document')).not.toContainText('پیشنویس — غیرقطعی');
112
const printable=await page.locator('#printable-invoice').innerText();
113
expect(printable).not.toMatch(/[0-9٠-٩]/);
114
});