From 6cc34dc9fd6da22f328ad5b5ef4284a6d9546a96 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 19 Feb 2023 22:24:04 +0530 Subject: [PATCH] fix xss test --- cypress/platform/viewer.js | 2 +- cypress/platform/xss.html | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cypress/platform/viewer.js b/cypress/platform/viewer.js index e22bbb652..07fe4d673 100644 --- a/cypress/platform/viewer.js +++ b/cypress/platform/viewer.js @@ -119,7 +119,7 @@ const contentLoadedApi = async function () { mermaid2.initialize(graphObj.mermaid); const { svg, bindFunctions } = await mermaid2.render('newid', graphObj.code, div); div.innerHTML = svg; - console.log(svg); + console.log(div.innerHTML); bindFunctions(div); } } diff --git a/cypress/platform/xss.html b/cypress/platform/xss.html index 6008e36b5..ac45ba0b8 100644 --- a/cypress/platform/xss.html +++ b/cypress/platform/xss.html @@ -1,15 +1,5 @@ -