test(chat): update tests for chat#556
Merged
LuckyFBB merged 1 commit intoDTStack:masterfrom Apr 25, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates and extends the chat test suite by adding new tests and modifying existing snapshots to better cover component behaviors.
- Added tests for the Welcome component to verify rendering, customization, and snapshot consistency.
- Updated the Markdown test to use a multi-line template literal for improved clarity.
- Extended Input tests with onSubmit behavior and refined Icon and Content tests by removing redundant cases.
Reviewed Changes
Copilot reviewed 6 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/chat/tests/welcome.test.tsx | Introduces comprehensive tests for the Welcome component. |
| src/chat/tests/markdown.test.tsx | Revises snapshot testing for Markdown using a multi-line string. |
| src/chat/tests/input.test.tsx | Adds onSubmit tests for handling button clicks with Input. |
| src/chat/tests/icon.test.tsx | Updates snapshot tests by removing tests for unused icons. |
| src/chat/tests/content.test.tsx | Removes a redundant test for the hidden robot icon. |
Files not reviewed (5)
- src/chat/tests/snapshots/content.test.tsx.snap: Language not supported
- src/chat/tests/snapshots/icon.test.tsx.snap: Language not supported
- src/chat/tests/snapshots/input.test.tsx.snap: Language not supported
- src/chat/tests/snapshots/markdown.test.tsx.snap: Language not supported
- src/chat/tests/snapshots/welcome.test.tsx.snap: Language not supported
LuckyFBB
approved these changes
Apr 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
详细描述
对应 Previewer