We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33b2e4e commit 3ab22f5Copy full SHA for 3ab22f5
diagram/src/test/java/io/serverlessworkflow/diagram/test/CustomTemplateWorkflowDiagramTest.java
@@ -39,12 +39,15 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
39
assertNotNull(workflow.getStates());
40
41
WorkflowDiagram workflowDiagram =
42
- new WorkflowDiagramImpl().setWorkflow(workflow).setTemplate("custom-template");
+ new WorkflowDiagramImpl()
43
+ .showLegend(true)
44
+ .setWorkflow(workflow)
45
+ .setTemplate("custom-template");
46
47
String diagramSVG = workflowDiagram.getSvgDiagram();
48
49
Assertions.assertNotNull(diagramSVG);
- // custom template uses #0000FF as start node color
50
+ // custom template uses customcolor in the legend
51
Assertions.assertTrue(diagramSVG.contains("customcolor"));
52
}
53
0 commit comments