2019-09-18 18:25:06 +02:00
|
|
|
describe('Sequencediagram', () => {
|
|
|
|
it('should render a simple sequence diagrams', () => {
|
|
|
|
const url = 'http://localhost:9000/webpackUsage.html';
|
|
|
|
|
|
|
|
cy.visit(url);
|
2021-11-18 19:17:00 +01:00
|
|
|
cy.get('body').find('svg').should('have.length', 1);
|
2019-09-18 18:25:06 +02:00
|
|
|
});
|
2020-07-26 08:00:43 +02:00
|
|
|
it('should handle html escapings properly', () => {
|
|
|
|
const url = 'http://localhost:9000/webpackUsage.html?test-html-escaping=true';
|
|
|
|
|
|
|
|
cy.visit(url);
|
2021-11-18 19:17:00 +01:00
|
|
|
cy.get('body').find('svg').should('have.length', 1);
|
2020-07-26 08:00:43 +02:00
|
|
|
|
2021-07-07 16:41:36 +02:00
|
|
|
cy.get('g.label > foreignobject > div').should('not.contain.text', '<b>');
|
2020-07-26 08:00:43 +02:00
|
|
|
});
|
2019-09-18 18:25:06 +02:00
|
|
|
});
|