Skip to content

test(ui): add interaction tests for ChatWindow (#551) - #1036

Merged
imDarshanGK merged 3 commits into
imDarshanGK:mainfrom
annukumar123:feature/chat-window-interaction-tests-551
Jul 30, 2026
Merged

test(ui): add interaction tests for ChatWindow (#551)#1036
imDarshanGK merged 3 commits into
imDarshanGK:mainfrom
annukumar123:feature/chat-window-interaction-tests-551

Conversation

@annukumar123

Copy link
Copy Markdown
Contributor

Summary

This PR adds unit and interaction test coverage for ChatWindow.jsx using Vitest and React Testing Library, completing requirements for issue #551.

Changes Included

  • Added interaction test suite to verify:
    1. Message Submission: Clicking the Send button triggers onSend callback with input text and resets the textarea.
    2. Streaming Control: Clicking the Stop button during message generation invokes the onStop handler.
    3. Message Filtering: Typing into the search input dynamically filters messages rendered in the chat view, and clearing search restores all messages.

Testing & Verification

Ran test suite locally via Vitest:

npx vitest run src/components/ChatWindow.test.jsx

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@annukumar123 is attempting to deploy a commit to the Darshan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@annukumar123

Copy link
Copy Markdown
Contributor Author

@imDarshanGK
It is perfect . you can verify now

@imDarshanGK imDarshanGK added SSoC26 Part of Social Summer of Code 2026 Easy Beginner-friendly implementation work labels Jul 30, 2026
@imDarshanGK
imDarshanGK merged commit d0a6356 into imDarshanGK:main Jul 30, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Easy Beginner-friendly implementation work SSoC26 Part of Social Summer of Code 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants