| 1 | describe('IIFE', () => { |
| 2 | beforeEach(() => { |
| 3 | cy.visit('/iife.html'); |
| 4 | }); |
| 5 | |
| 6 | it('should render when using mermaid.min.js', () => { |
| 7 | cy.window().should('have.property', 'rendered', true); |
| 8 | cy.get('svg').should('be.visible'); |
| 9 | cy.get('#d2').should('contain', 'Hello'); |
| 10 | }); |
| 11 | }); |
| 12 |