Files
mermaid/cypress/integration/other/iife.spec.js
Sidharth Vinod ac1ff75806 feat: Add IIFE
2023-08-12 10:09:47 +05:30

12 lines
315 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('have.text', 'Hello');
});
});