mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	Html labels set to false in tests
This commit is contained in:
		@@ -13,7 +13,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        classB -- classD
 | 
			
		||||
 | 
			
		||||
        `,
 | 
			
		||||
        {logLevel : 1}
 | 
			
		||||
        {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
      );
 | 
			
		||||
      cy.get('svg');
 | 
			
		||||
    });
 | 
			
		||||
@@ -47,7 +47,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        test()
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {logLevel : 1}
 | 
			
		||||
      {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -76,7 +76,8 @@ describe('Class diagram', () => {
 | 
			
		||||
        test()
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
      {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -94,7 +95,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      Class01 : +int publicGorilla
 | 
			
		||||
      Class01 : #int protectedMarmoset
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -147,7 +148,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      ],
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -177,7 +178,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        test()
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -189,7 +190,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      Class01 <|-- AveryLongClass : Cool
 | 
			
		||||
      Class01 : someMethod()*
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -201,7 +202,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      Class01 <|-- AveryLongClass : Cool
 | 
			
		||||
      Class01 : someMethod()$
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -221,7 +222,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        test()
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -242,7 +243,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        test()
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -264,7 +265,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      }
 | 
			
		||||
      link class01 "google.com" "A Tooltip"
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -286,7 +287,7 @@ describe('Class diagram', () => {
 | 
			
		||||
      }
 | 
			
		||||
      callback class01 "functionCall" "A Tooltip"
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -301,7 +302,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        testArray() bool[]
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -317,7 +318,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        testArray() bool[]
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -335,7 +336,7 @@ describe('Class diagram', () => {
 | 
			
		||||
 | 
			
		||||
      cssClass "Class10" exClass
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -351,7 +352,7 @@ describe('Class diagram', () => {
 | 
			
		||||
        testArray() bool[]
 | 
			
		||||
      }
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
@@ -365,7 +366,7 @@ describe('Class diagram', () => {
 | 
			
		||||
 | 
			
		||||
      cssClass "Class10, class20" exClass
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
       {logLevel : 1, flowchart: { "htmlLabels": false },}
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,15 @@
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    <h1>info below</h1>
 | 
			
		||||
      <div class="mermaid2" style="width: 100%; height: 20%;">
 | 
			
		||||
      <div class="mermaid" style="width: 100%; height: 20%;">
 | 
			
		||||
        classDiagram-v2
 | 
			
		||||
 | 
			
		||||
        classA -- classB : Inheritance
 | 
			
		||||
        classA -- classC : link
 | 
			
		||||
        classC -- classD : link
 | 
			
		||||
        classB -- classD
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="mermaid" style="width: 100%; height: 20%;">
 | 
			
		||||
        classDiagram-v2
 | 
			
		||||
         class BankAccount{
 | 
			
		||||
          +String owner
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user