سامانه صدور فاکتور و حسابداری
test: document explicit core boot barriers in invoice fixture
davoodmehraban89 committed
Nov 17, 2026 at 23:40 UTC
3d71b40a36d075ebf8e1826bc73cb87440b9af53
1 file changed
+1
scripts/phase0-invoice-persistence.spec.js
+1
@@ -43,6 +43,7 @@ async function installHarness(page,server){
43
}
44
async function authenticatedMockBrowser(page,companyId='QA_CO',url=BASE){
45
await page.goto(url,{waitUntil:'domcontentloaded'});
46
+ // The two core readiness promises gate login hydration independently of extension registration.
47
// Mock identity must be injected only after the async organization wrapper
48
// and all ERP extensions have finished installing. Test-only readiness guard.
49
await page.waitForFunction(()=>typeof enterApp==='function'&&typeof commitSaveInvoice==='function'&&