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

test(print): allow CSS template interpolation in page margin assertion

davoodmehraban89 committed Oct 14, 2026 at 10:58 UTC 10abed96ba7d44d4ca403d723b8ad2d88a9ca7bb
1 file changed +1 -1
tests/invoice-print-header-footer.test.mjs
+1 -1
@@ -10,7 +10,7 @@ test('print iframe does not expose an application title in browser-generated hea
10 });
11
12 test('print iframe uses zero page margin and keeps invoice layout padding', () => {
13 - assert.match(source, /@page\s*\{[^}]*margin:\s*0\s*!important\s*;/s);
13 + assert.match(source, /@page\s*\{[\s\S]*?margin:\s*0\s*!important\s*;/);
14 assert.match(source, /\.print-doc/);
15 });
16