diff --git a/cypress/integration/other/webpackUsage.spec.js b/cypress/integration/other/webpackUsage.spec.js index 4e4fac14e..90f1a1b8a 100644 --- a/cypress/integration/other/webpackUsage.spec.js +++ b/cypress/integration/other/webpackUsage.spec.js @@ -6,7 +6,7 @@ describe('Sequencediagram', () => { cy.visit(url); cy.get('body') .find('svg') - .should('have.length', 2); + .should('have.length', 1); }); it('should handle html escapings properly', () => { const url = 'http://localhost:9000/webpackUsage.html?test-html-escaping=true'; diff --git a/cypress/platform/bundle-test.js b/cypress/platform/bundle-test.js index b1128ab10..df1ee03a1 100644 --- a/cypress/platform/bundle-test.js +++ b/cypress/platform/bundle-test.js @@ -1,4 +1,4 @@ -import mermaid from '../../dist/mermaid.core' +import mermaid from '../../dist/mermaid.core'; let code = `flowchart LR Power_Supply --> Transmitter_A @@ -22,21 +22,19 @@ let code2 = `gantt Create tests for renderer :2d Add to mermaid :1d`; - -const code3 = `graph TD +const code3 = `flowchart TD A() -B(Bold text)`; +B(Bold text!)`; - -if(location.href.match('test-html-escaping')){ +if (location.href.match('test-html-escaping')) { code = code3; } mermaid.initialize({ theme: 'default', - fontFamily: '"Lucida Console", Monaco, monospace', + // fontFamily: '"Lucida Console", Monaco, monospace', startOnLoad: false, - securityLevel: "loose", + securityLevel: 'loose', flowchart: { htmlLabels: true }, diff --git a/cypress/platform/webpackUsage.html b/cypress/platform/webpackUsage.html index 32123d902..e4943effd 100644 --- a/cypress/platform/webpackUsage.html +++ b/cypress/platform/webpackUsage.html @@ -1,22 +1,17 @@ - + + + -
-graph LR -A-->B -
-
-gantt -title A Gantt Diagram -dateFormat YYYY-MM-DD -section Section -A task :a1, 2014-01-01, 30d -Another task :after a1 , 20d -section Another -Task in sec :2014-01-12 , 12d -another task : 24d -
+