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

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

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

Synced Dec 3, 19:30 UTC

Add failing Office C6 Real-DOM coverage

davoodmehraban89 committed Oct 1, 2026 at 00:12 UTC bc977a3dcc7443ab70e859a78e14eb8ad2875445
1 file changed +8
scripts/office-slice-c6.spec.js new
+8
@@ -0,0 +1,8 @@
1 +const {test,expect}=require('@playwright/test');
2 +test('Office C6 exposes internal SLA 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.officeLoadSlaQueue==='function');
6 + expect(await page.evaluate(()=>typeof window.officeEmitSlaEvent)).toBe('function');
7 + expect(errs.filter(x=>!x.includes('ResizeObserver'))).toEqual([]);
8 +});