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

test: keep D3b editor mounted after publish

davoodmehraban89 committed Oct 1, 2026 at 23:05 UTC ca1fe68dc8c8624281824e43f16d4a20d7f49030
1 file changed +2
scripts/request-workflow-d3b.spec.js
+2
@@ -32,6 +32,8 @@ test('D3b visual editor publishes ordered steps with a bounded condition',async(
32 await page.evaluate(()=>requestD3bPublishCombined());
33 const call=await page.evaluate(()=>window.__d3b.rpc.find(x=>x.name==='request_publish_type_version'));
34 expect(call.args.p_workflow_schema.schemaVersion).toBe(2);expect(call.args.p_workflow_schema.steps).toHaveLength(2);expect(call.args.p_workflow_schema.steps[1].condition).toEqual({field:'f1',op:'gte',value:1000});
35 + await expect(page.locator('#request-d3b-editor')).toBeVisible();
36 + await expect(page.locator('.request-d3b-step')).toHaveCount(2);
37 });
38
39 test('D3b renders a read-only timeline with skipped and active condition evidence',async({page})=>{