Behaviour SwRS-MDOKFSTUDIO-DIAG-128
Exported diagrams are drawn images in the theme of the file
When the exported page has Mermaid, PlantUML or Vega diagrams, the extension SHALL wait for the pending diagrams to draw, write each drawn diagram as an image in the theme of the file and write a diagram in error as its error box.
Part of StRS-MDOKFSTUDIO-TOOLBAR-014, outside the paths drawn on its map.
Scenarios 2
The situations the tests check; open one to read it.
nominalDrawn diagrams are exported as drawn
Givena page with a Mermaid, a PlantUML and a Vega diagram still drawing when Export is pressed
Whenthe diagrams settle
Thenthe snapshot is taken after they settled, and the file holds each diagram as the image the preview shows in the theme of the file
boundarySlow and failed diagrams
| Input | Outcome |
|---|---|
| A diagram still pending after 10 seconds | The export goes on with the page as it shows |
| A diagram in error | It is written as its error box |