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

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

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

Synced Dec 3, 19:30 UTC

test(ux): load manually created legacy correction draft explicitly before edit

davoodmehraban89 committed Oct 14, 2026 at 10:01 UTC faeae40835631c08da12c6145913419549f1c6ed
1 file changed +2
scripts/accounting-document-workflow.spec.js
+2
@@ -285,6 +285,8 @@ test('pilot purchase: posted to corrective draft to edited balanced repost via d
285 expect(corrected.number).not.toBe(first.number);
286 expect(await page.evaluate(()=>productMovement('QA_PROD').available)).toBe(0);
287 expect(await page.evaluate(id=>purchaseDocumentStatus(getMyPurchases().find(x=>x.id===id)),originalId)).toBe('reversed');
288 + // Internal API fixture made a technical draft without clicking the employee form.
289 + await page.evaluate(id=>purEdit(id),corrected.id);
290 await expect(page.locator('#pur-edit-id')).toHaveValue(corrected.id);
291 await page.locator('#pur-items-body .pur-qty').first().fill('3');
292 await page.locator('#pur-items-body .pur-qty').first().dispatchEvent('input');