From dabc220ed24a5d0e262e71effab53b024fcaadb8 Mon Sep 17 00:00:00 2001 From: darshanr0107 Date: Wed, 20 Aug 2025 18:12:44 +0530 Subject: [PATCH] fix: use new frontmatter in test case on-behalf-of: @Mermaid-Chart --- cypress/integration/rendering/timeline.spec.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cypress/integration/rendering/timeline.spec.ts b/cypress/integration/rendering/timeline.spec.ts index cb3ad1429..5ab7cb512 100644 --- a/cypress/integration/rendering/timeline.spec.ts +++ b/cypress/integration/rendering/timeline.spec.ts @@ -226,8 +226,13 @@ timeline ); }); it('13: should render markdown htmlLabels', () => { - const timelineCode = `%%{init: { 'logLevel': 'debug', 'theme': 'forest' } }%% - timeline + imgSnapshotTest( + `--- +config: + theme: forest +--- + + timeline title Timeline of Industrial Revolution section 17th-20th century Industry 1.0 : Machinery, Water power, Steam
power @@ -236,7 +241,8 @@ timeline section 21st century Industry 4.0 : Internet, Robotics, Internet of Things Industry 5.0 : Artificial intelligence, Big data, 3D printing - `; - imgSnapshotTest(timelineCode); + `, + {} + ); }); });