mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Adding new flowchart tests related to issue #2139
This commit is contained in:
		@@ -449,7 +449,7 @@ flowchart TD
 | 
			
		||||
      { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('65: text-color from classes', () => {
 | 
			
		||||
  it('65-1: text-color from classes', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
      flowchart LR
 | 
			
		||||
@@ -460,6 +460,31 @@ flowchart TD
 | 
			
		||||
      { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('65-2: bold text from classes', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
      flowchart
 | 
			
		||||
        classDef cat fill:#f9d5e5, stroke:#233d4d,stroke-width:2px, font-weight:bold;
 | 
			
		||||
        CS(A long bold text to be viewed):::cat
 | 
			
		||||
      `,
 | 
			
		||||
      { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('65-3: bigger font from classes', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
flowchart
 | 
			
		||||
  Node1:::class1 --> Node2:::class2
 | 
			
		||||
  Node1:::class1 --> Node3:::class2
 | 
			
		||||
  Node3 --> Node4((I am a circle)):::larger
 | 
			
		||||
 | 
			
		||||
  classDef class1 fill:lightblue
 | 
			
		||||
  classDef class2 fill:pink
 | 
			
		||||
  classDef larger font-size:30px,fill:yellow
 | 
			
		||||
      `,
 | 
			
		||||
      { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('66: More nested subgraph cases (TB)', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user