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

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

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

Synced Dec 4, 08:00 UTC

test(c8): scope workflow status assertion to its panel (#256)

davoodmehraban89 committed Nov 24, 2026 at 16:13 UTC 9213f60d9af62ceccb0399e9a03e28cffc9f9d1e
1 file changed +1 -1
scripts/office-slice-c8.spec.js
+1 -1
@@ -101,7 +101,7 @@ test('Office C8 transition disables duplicate intent and refreshes stale revisio
101 await page.evaluate(()=>window.officeWorkflowOpen('LETTER-2',document.getElementById('c8-root')));
102 const button=page.getByRole('button',{name:'تأیید'});
103 await button.dblclick();
104 - await expect(page.locator('[role="status"]')).toContainText('تغییر هم‌زمان');
104 + await expect(page.locator('#c8-root [role="status"]')).toContainText('تغییر هم‌زمان');
105 const calls=await page.evaluate(()=>window.__c8Calls);
106 expect(calls.filter(x=>x.name==='office_workflow_transition')).toHaveLength(1);
107 expect(calls.filter(x=>x.name==='office_workflow_read')).toHaveLength(2);