From c7e1f59c47f9df85462b8636ad2d7c7d45e6aeb1 Mon Sep 17 00:00:00 2001 From: mortalYoung Date: Fri, 18 Apr 2025 14:57:36 +0800 Subject: [PATCH] test(chat): update tests for chat --- .../__snapshots__/content.test.tsx.snap | 44 +- .../__snapshots__/icon.test.tsx.snap | 167 +- .../__snapshots__/input.test.tsx.snap | 72 +- .../__snapshots__/markdown.test.tsx.snap | 6 + .../__snapshots__/message.test.tsx.snap | 1497 ++++++++++++++++- .../__snapshots__/welcome.test.tsx.snap | 345 ++++ src/chat/__tests__/content.test.tsx | 9 +- src/chat/__tests__/icon.test.tsx | 13 +- src/chat/__tests__/input.test.tsx | 13 + src/chat/__tests__/markdown.test.tsx | 8 +- src/chat/__tests__/welcome.test.tsx | 49 + 11 files changed, 2007 insertions(+), 216 deletions(-) create mode 100644 src/chat/__tests__/__snapshots__/welcome.test.tsx.snap create mode 100644 src/chat/__tests__/welcome.test.tsx diff --git a/src/chat/__tests__/__snapshots__/content.test.tsx.snap b/src/chat/__tests__/__snapshots__/content.test.tsx.snap index 292a87573..b3806e773 100644 --- a/src/chat/__tests__/__snapshots__/content.test.tsx.snap +++ b/src/chat/__tests__/__snapshots__/content.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Test Chat Content Match snapshot: normal 1`] = `
placeholder
- - - - - - - - - - - -
`; diff --git a/src/chat/__tests__/__snapshots__/icon.test.tsx.snap b/src/chat/__tests__/__snapshots__/icon.test.tsx.snap index ee756b444..26dc9abfb 100644 --- a/src/chat/__tests__/__snapshots__/icon.test.tsx.snap +++ b/src/chat/__tests__/__snapshots__/icon.test.tsx.snap @@ -1,50 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Test Chat Icon Match Snapshots: AssistantAvatarIcon 1`] = ` - - - - - - - - - - - - - - -`; - exports[`Test Chat Icon Match Snapshots: CopyIcon 1`] = ` `; -exports[`Test Chat Icon Match Snapshots: RobotIcon 1`] = ` +exports[`Test Chat Icon Match Snapshots: SendIcon 1`] = ` - - - -`; - -exports[`Test Chat Icon Match Snapshots: SendIcon 1`] = ` - - - - - + + + + + + + @@ -278,18 +229,60 @@ exports[`Test Chat Icon Match Snapshots: SendIcon with gradient 1`] = ` - + + + + + + + + + + + + + + diff --git a/src/chat/__tests__/__snapshots__/input.test.tsx.snap b/src/chat/__tests__/__snapshots__/input.test.tsx.snap index 3f9450d02..e4f3dcbf5 100644 --- a/src/chat/__tests__/__snapshots__/input.test.tsx.snap +++ b/src/chat/__tests__/__snapshots__/input.test.tsx.snap @@ -2,8 +2,74 @@ exports[`Test Chat Input Match snapshot 1`] = ` -