diff --git a/cypress/integration/other/xss.spec.js b/cypress/integration/other/xss.spec.js index ef4878bc4..9a07a7ab2 100644 --- a/cypress/integration/other/xss.spec.js +++ b/cypress/integration/other/xss.spec.js @@ -68,8 +68,13 @@ describe('XSS', () => { cy.wait(1000); cy.get('#the-malware').should('not.exist'); }) - it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams', () => { - cy.visit('http://localhost:9000/xss7.html'); + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre wrapper', () => { + cy.visit('http://localhost:9000/xss8.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss9.html'); cy.wait(1000); cy.get('#the-malware').should('not.exist'); }) diff --git a/cypress/platform/xss8.html b/cypress/platform/xss8.html new file mode 100644 index 000000000..e5a3dd417 --- /dev/null +++ b/cypress/platform/xss8.html @@ -0,0 +1,99 @@ + +
+ + + + + + + +