@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 79e2b49
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 19:30 UTC

Add failing Office C5 Real-DOM coverage

davoodmehraban89 committed Oct 1, 2026 at 00:03 UTC 79e2b49d7ded6d011c337fcb5299e8fe583b09c0
1 file changed +9
scripts/office-slice-c5.spec.js new
+9
@@ -0,0 +1,9 @@
1 +const {test,expect}=require('@playwright/test');
2 +test('Office C5 exposes internal approval controls',async({page})=>{
3 + const errs=[];page.on('pageerror',e=>errs.push(String(e)));
4 + await page.goto('http://127.0.0.1:4173/index.html',{waitUntil:'domcontentloaded'});
5 + await page.waitForFunction(()=>typeof window.officeLoadApprovalQueue==='function');
6 + expect(await page.evaluate(()=>typeof window.officeRequestApproval)).toBe('function');
7 + expect(await page.evaluate(()=>typeof window.officeActOnApproval)).toBe('function');
8 + expect(errs.filter(x=>!x.includes('ResizeObserver'))).toEqual([]);
9 +});