سامانه صدور فاکتور و حسابداری
test: await async enterprise organization bootstrap
davoodmehraban89 committed
Oct 7, 2026 at 18:15 UTC
302df74775583c22ab5b8683a1a181170984005d
1 file changed
+1
scripts/enterprise-org-ux.spec.js
+1
@@ -4,6 +4,7 @@ test('ELI-4 enterprise organization UX exposes typed tree and capacity dashboard
4
const errs=[];page.on('pageerror',e=>errs.push(String(e)));
5
await page.goto('http://127.0.0.1:4173/index.html',{waitUntil:'domcontentloaded'});
6
await page.waitForFunction(()=>typeof window.finoraCanManageOrganization==='function');
7
+ await page.waitForFunction(()=>typeof window.renderEnterpriseOrganizationTree==='function'&&typeof window.refreshEnterpriseOrganizationDashboard==='function');
8
expect(await page.evaluate(()=>typeof window.renderEnterpriseOrganizationTree)).toBe('function');
9
expect(await page.evaluate(()=>typeof window.refreshEnterpriseOrganizationDashboard)).toBe('function');
10
expect(await page.evaluate(()=>{