diff --git a/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap b/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap index 3e1f83f5a10..7e6a961e8ef 100644 --- a/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap +++ b/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap @@ -1,183 +1,69 @@ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`components/FormattedMarkdownMessage should allow to disable links 1`] = ` -hello world!", - "test.foo": "**bold** *italic* [link](https://mattermost.com/)
[link target blank](!https://mattermost.com/)", - "test.vals": "*Hi* {petName}!", - } - } - onError={[Function]} - onWarn={[Function]} - textComponent={Symbol(react.fragment)} -> - - Hi http://www.mattermost.com!", - } - } - /> - -
+
+ + + Hi + + http://www.mattermost.com! + +
`; exports[`components/FormattedMarkdownMessage should backup to default 1`] = ` -hello world!", - "test.foo": "**bold** *italic* [link](https://mattermost.com/)
[link target blank](!https://mattermost.com/)", - "test.vals": "*Hi* {petName}!", - } - } - onError={[Function]} - onWarn={[Function]} - textComponent={Symbol(react.fragment)} -> - - - -
+
+ + testing default message + +
`; exports[`components/FormattedMarkdownMessage should escape non-BR 1`] = ` -hello world!", - "test.foo": "**bold** *italic* [link](https://mattermost.com/)
[link target blank](!https://mattermost.com/)", - "test.vals": "*Hi* {petName}!", - } - } - onError={[Function]} - onWarn={[Function]} - textComponent={Symbol(react.fragment)} -> - - - -
+
+ + <b>hello</b> <script>var malicious = true;</script> world! + +
`; exports[`components/FormattedMarkdownMessage should render message 1`] = ` -hello world!", - "test.foo": "**bold** *italic* [link](https://mattermost.com/)
[link target blank](!https://mattermost.com/)", - "test.vals": "*Hi* {petName}!", - } - } - onError={[Function]} - onWarn={[Function]} - textComponent={Symbol(react.fragment)} -> - - bold italic link <br/> link target blank", - } - } - /> - -
+
+ + + bold + + + + italic + + + + link + + <br/> + + link target blank + + +
`; exports[`components/FormattedMarkdownMessage values should work 1`] = ` -hello world!", - "test.foo": "**bold** *italic* [link](https://mattermost.com/)
[link target blank](!https://mattermost.com/)", - "test.vals": "*Hi* {petName}!", - } - } - onError={[Function]} - onWarn={[Function]} - textComponent={Symbol(react.fragment)} -> - - Hi sweetie!", - } - } - /> - -
+
+ + + Hi + + sweetie! + +
`; diff --git a/webapp/channels/src/components/__snapshots__/get_link_modal.test.tsx.snap b/webapp/channels/src/components/__snapshots__/get_link_modal.test.tsx.snap index e697be7647e..d4a06f09d10 100644 --- a/webapp/channels/src/components/__snapshots__/get_link_modal.test.tsx.snap +++ b/webapp/channels/src/components/__snapshots__/get_link_modal.test.tsx.snap @@ -1,362 +1,386 @@ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing -exports[`components/GetLinkModal should have called onHide 1`] = ` - -