mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
describe('IIFE', () => {
 | 
						|
  beforeEach(() => {
 | 
						|
    cy.visit('http://localhost:9000/iife.html');
 | 
						|
  });
 | 
						|
 | 
						|
  it('should render when using mermaid.min.js', () => {
 | 
						|
    cy.window().should('have.property', 'rendered', true);
 | 
						|
    cy.get('svg').should('be.visible');
 | 
						|
    cy.get('#d2').should('contain', 'Hello');
 | 
						|
  });
 | 
						|
});
 |