سامانه صدور فاکتور و حسابداری
test: align print fields with Persian digits
davoodmehraban89 committed
Oct 7, 2026 at 18:15 UTC
d1322a3c4768122a56093a6a48fa7b438b4ebd2a
1 file changed
+2
-2
scripts/taxpayer-print.spec.js
+2
-2
@@ -31,8 +31,8 @@ test('Taxpayer System print follows the approved official landscape structure',a
31
expect(await page.locator('.final-grid .tax-logo-slot').count()).toBe(0);
32
expect((await page.locator('.final-grid').boundingBox()).height).toBeLessThan(55);
33
await expect(page.locator('.items-table tbody tr').first()).toContainText('۳۴,۱۳۶,۹۰۳,۷۲۵');
34
- await expect(page.locator('.items-table tbody tr').first()).toContainText('1.00');
35
- await expect(page.locator('.seller-contract')).toContainText('205108734859');
34
+ await expect(page.locator('.items-table tbody tr').first()).toContainText('۱.۰۰');
35
+ await expect(page.locator('.seller-contract')).toContainText('۲۰۵۱۰۸۷۳۴۸۵۹');
36
expect((await page.locator('.amount-words').textContent()).match(/ریال/g)).toHaveLength(1);
37
expect(await page.locator('.taxpayer-official-sheet').evaluate(el=>el.scrollWidth<=el.clientWidth)).toBe(true);
38
await page.screenshot({path:'test-results/taxpayer-reference.png',fullPage:true});