Adding xss tests

This commit is contained in:
Knut Sveidqvist
2021-09-29 08:52:12 +02:00
parent 35d8f33542
commit db8517a7f9
3 changed files with 205 additions and 2 deletions

View File

@@ -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');
})