mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-30 13:46:43 +02:00
Directive support added to journey
Fixed an issue in journey svgDraw.drawText expected an attribute (textMargin) but did not receive one and raised an error: <tspan> attribute x: Expected length, "NaN". Added parseDirective to journeyDb
This commit is contained in:
@@ -224,6 +224,7 @@ erDiagram
|
||||
it('should render a user journey diagram', () => {
|
||||
imgSnapshotTest(
|
||||
`
|
||||
%%{init: { 'logLevel': 0, 'theme': '${theme}'} }%%
|
||||
journey
|
||||
title My working day
|
||||
section Go to work
|
||||
@@ -232,8 +233,7 @@ erDiagram
|
||||
Do work: 1: Me, Cat
|
||||
section Go home
|
||||
Go downstairs: 5: Me
|
||||
Sit down: 5: Me `,
|
||||
{theme}
|
||||
Sit down: 5: Me `
|
||||
);
|
||||
cy.get('svg');
|
||||
});
|
||||
|
Reference in New Issue
Block a user