سامانه صدور فاکتور و حسابداری
test: remove temporary diagnostic print after admin fixture passes
davoodmehraban89 committed
Oct 11, 2026 at 20:24 UTC
b77939d7a8e89ba6bf37aee6116ed5256149f5cc
1 file changed
-1
scripts/admin-provisioning.spec.js
-1
@@ -20,7 +20,6 @@ test('central administrator provisions account via server-only endpoint, with no
20
await page.locator('#admin-new-username').fill('sample.user');
21
await page.locator('#admin-new-password').fill('VeryStrong!Password12');
22
await page.locator('#admin-create-submit').click();
23
- console.log('PROVISION_DEBUG',await page.evaluate(()=>({status:document.getElementById('admin-create-status').textContent,role:currentUser?.role,calls:window.__adminCalls.length,pw:!!document.getElementById('admin-new-password').value,overlay:document.getElementById('modal-admin-create-user').className})));
23
await expect(page.locator('#modal-admin-create-user')).not.toHaveClass(/active/);
24
const result=await page.evaluate(()=>({calls:window.__adminCalls,cleared:document.getElementById('admin-new-password').value}));
25
expect(result.calls).toHaveLength(1);