From 29bb8abc71d64d4f6730b9416016ed3a48f8feeb Mon Sep 17 00:00:00 2001 From: Patryk Rosiak Date: Thu, 28 Sep 2023 17:03:46 +0200 Subject: [PATCH] feat: add wrapper for version labels --- src/core/components/info.jsx | 6 ++++-- test/unit/xss/info-sanitization.jsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/components/info.jsx b/src/core/components/info.jsx index 2fbbbede6b7..59a9abc32cb 100644 --- a/src/core/components/info.jsx +++ b/src/core/components/info.jsx @@ -100,8 +100,10 @@ class Info extends React.Component {

{title} - {version && } - + + {version && } + +

{host || basePath ? ( diff --git a/test/unit/xss/info-sanitization.jsx b/test/unit/xss/info-sanitization.jsx index c4b847c3b26..718e202d059 100644 --- a/test/unit/xss/info-sanitization.jsx +++ b/test/unit/xss/info-sanitization.jsx @@ -22,7 +22,7 @@ describe(" Sanitization", function(){ it("renders sanitized .title content", function(){ let wrapper = render() - expect(wrapper.find(".title").html()).toEqual("Test Title **strong** <script>alert(1)</script>") + expect(wrapper.find(".title").html()).toEqual("Test Title **strong** <script>alert(1)</script>") }) it("renders sanitized .description content", function() {