mermaid/cypress/integration/other/webpackUsage.spec.js

22 lines
592 B
JavaScript
Raw Normal View History

2019-09-18 18:25:06 +02:00
/* eslint-env jest */
describe('Sequencediagram', () => {
it('should render a simple sequence diagrams', () => {
const url = 'http://localhost:9000/webpackUsage.html';
cy.visit(url);
cy.get('body')
.find('svg')
.should('have.length', 2);
});
2020-07-26 08:03:56 +02:00
it('should handle html escapings properly', () => {
const url = 'http://localhost:9000/webpackUsage.html?test-html-escaping=true';
cy.visit(url);
cy.get('body')
.find('svg')
.should('have.length', 1);
cy.get('.label > g > foreignobject > div').should('not.contain.text', '<b>');
});
2019-09-18 18:25:06 +02:00
});