mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	Test updates when switching to cypress-image-snapshoits
This commit is contained in:
		@@ -134,7 +134,7 @@ graph TD
 | 
			
		||||
      const url = 'http://localhost:9000/theme-directives.html';
 | 
			
		||||
      cy.visit(url);
 | 
			
		||||
      cy.get('svg');
 | 
			
		||||
      cy.percySnapshot();
 | 
			
		||||
      cy.matchImageSnapshot('conf-and-directives.spec-when-rendering-several-diagrams-diagram-1');
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ describe('Pie Chart', () => {
 | 
			
		||||
  it('should render a simple pie diagram', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
    pie title Sports in Sweden!
 | 
			
		||||
    pie title Sports in Sweden
 | 
			
		||||
       "Bandy" : 40
 | 
			
		||||
       "Ice-Hockey" : 80
 | 
			
		||||
       "Football" : 90
 | 
			
		||||
 
 | 
			
		||||
@@ -552,7 +552,7 @@ context('Sequence diagram', () => {
 | 
			
		||||
        }
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
    it('should override config with directive settings', () => {
 | 
			
		||||
    it('should override config with directive settings 2', () => {
 | 
			
		||||
      imgSnapshotTest(
 | 
			
		||||
        `
 | 
			
		||||
        %%{init: { "config": { "mirrorActors": false, "wrap": true }}}%%
 | 
			
		||||
 
 | 
			
		||||
@@ -148,7 +148,7 @@ describe('State diagram', () => {
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg');
 | 
			
		||||
  });
 | 
			
		||||
  it('should render a simple state diagrams', () => {
 | 
			
		||||
  it('should render a simple state diagrams 2', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
    stateDiagram
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user