test(sections): add CommitPulseSection mouse interactivity tests#7940
Open
pari-dubey1 wants to merge 1 commit into
Open
test(sections): add CommitPulseSection mouse interactivity tests#7940pari-dubey1 wants to merge 1 commit into
pari-dubey1 wants to merge 1 commit into
Conversation
Contributor
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
Aamod007
reviewed
Jul 10, 2026
Aamod007
left a comment
Collaborator
There was a problem hiding this comment.
Great work on these interactivity tests! I reviewed \�pp/generator/components/sections/CommitPulseSection.mouse-interactivity.test.tsx\ and the tests for cursor style modifiers, clear button clicks, and switch toggles are very well structured. It's nice to see you clearly mocking dependencies like \useDebounce\ to avoid timer issues. The PR is clean and all checks are passing.
Labels assigned:
- \level:beginner: Standard addition of UI interactivity tests using React Testing Library.
- \quality:clean: The tests are well isolated and use mocks effectively.
- \ ype:testing: Strictly adds test coverage.
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.
Description
Fixes #6929
Deploys a comprehensive interactivity and gesture boundary test file at
app/generator/components/sections/CommitPulseSection.mouse-interactivity.test.tsx. Rather than inventing volatile visual coordinate mocks, this suite evaluates real interactive DOM elements, action state switches, username clear buttons, focus tracking loops, and feedback cursor class definitions (cursor-pointer).Summary of Test Case Coverages (Exactly 5 Cases):
cursor-pointerstyling classes for user hover context hints.fireEvent.changeto ensure updates trigger the underlying state dispatch parameters correctly.aria-label="Clear username"elements.Pillar
Visual Preview
(N/A: Client-side presentational form component interactivity layout unit test coverage).
Checklist before requesting a review:
CONTRIBUTING.mdfile.npx vitest run CommitPulseSection.mouse-interactivity).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).test(sections): ...).README.mdif I added a new theme or URL parameter.