From a0cac984b6837b6f3cf73e3d274833bfeab991c1 Mon Sep 17 00:00:00 2001 From: Anant Bhasin Date: Thu, 11 Mar 2021 01:38:40 +0530 Subject: [PATCH] Added stories --- .../__snapshots__/Storyshots.test.js.snap | 275 ++++++++++++++++++ storybook/stories/Message.js | 31 +- 2 files changed, 298 insertions(+), 8 deletions(-) diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 17bfb4dd2..211e2a83d 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -29076,6 +29076,281 @@ exports[`Storyshots Message list message 1`] = ` + + + + + + + + + + + + + + + + diego.mello + + + + 10:00 AM + + + + + + Image should not render + + + + + + + + + + + { attachments={[{ title: 'This is a title', description: 'This is a description', - image_url: '/dummypath' + image_url: '/dummypath', + type: 'file' }]} /> + @@ -362,13 +370,15 @@ export default ({ theme }) => { attachments={[{ title: 'This is a title', description: 'This is a description :nyan_rocket:', - video_url: '/dummypath' + video_url: '/dummypath', + type: 'file' }]} /> @@ -377,7 +387,8 @@ export default ({ theme }) => { attachments={[{ title: 'This is a title', description: 'This is a description :nyan_rocket:', - audio_url: '/dummypath' + audio_url: '/dummypath', + type: 'file' }]} /> @@ -385,21 +396,24 @@ export default ({ theme }) => { attachments={[{ title: 'This is a title', description: 'This is a description', - audio_url: '/dummypath' + audio_url: '/dummypath', + type: 'file' }]} isHeader={false} /> @@ -563,7 +577,8 @@ export default ({ theme }) => { attachments={[{ title: 'This is a title', description: 'This is a description', - audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac' + audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac', + type: 'file' }]} tmid='1' isThreadSequential