Skip to content

Commit

Permalink
Added image snapshot tests for timelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnymuir committed Sep 25, 2023
1 parent e96d0f6 commit 770a650
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cypress/integration/rendering/timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,29 @@ describe('Timeline diagram', () => {
{}
);
});
it('11: should render a simple timeline with markdown in nodes', () => {
imgSnapshotTest(
`timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : __Facebook in bold__ : Google
2005 : Youtube
2006 : Twitter
`,
{ timeline: { htmlLabels: true } }
);
});

it('12: should render a simple timeline with markdown in nodes as svg', () => {
imgSnapshotTest(
`timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : __Facebook in bold__ : Google
2005 : Youtube
2006 : Twitter
`,
{ timeline: { htmlLabels: false } }
);
});
});

0 comments on commit 770a650

Please sign in to comment.