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:
chris moran
2020-07-23 05:57:15 -04:00
parent a54f3c8c7f
commit cb675300b1
5 changed files with 50 additions and 4 deletions

View File

@@ -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');
});