feat: Add IIFE

This commit is contained in:
Sidharth Vinod
2023-08-12 10:09:47 +05:30
parent 32abb54d8a
commit ac1ff75806
5 changed files with 62 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
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');
});
});