سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 22:00 UTC
test: document core login barrier readiness in browser fixture
davoodmehraban89 committed
Nov 17, 2026 at 23:37 UTC
b4228cd3c5be0481480fbe555a67462722386e3d
1 file changed
+1
scripts/accounting-document-workflow.spec.js
+1
@@ -133,6 +133,7 @@ async function installHarness(page,server){
133
}
134
async function authenticatedMockBrowser(page){
135
await page.goto(BASE,{waitUntil:'domcontentloaded'});
136
+ // Await the two explicit core login barriers; extension registration alone does not settle either promise.
137
// The synthetic account must not race the organization entitlement wrapper.
138
// Function availability precedes completion of asynchronously loaded ERP modules.
139
await page.waitForFunction(()=>typeof enterApp==='function'&&typeof commitSaveInvoice==='function'&&