Skip to content

test(ShareSheet-mouse-interactivity): ShareSheet mouse interactivity — hover, click propagation and touch events#3559

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
Subhooo5:test/sharesheet-mouse-interactivity
Jun 4, 2026
Merged

test(ShareSheet-mouse-interactivity): ShareSheet mouse interactivity — hover, click propagation and touch events#3559
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
Subhooo5:test/sharesheet-mouse-interactivity

Conversation

@Subhooo5
Copy link
Copy Markdown
Contributor

@Subhooo5 Subhooo5 commented Jun 3, 2026

Description

Fixes #2617

  • Created components/dashboard/ShareSheet.mouse-interactivity.test.tsx as a dedicated test file for hover, click, and touch interactions
  • Exposes named mock handler refs (mockHandleTwitter etc.) at module scope for per-test call-count assertions
  • Test 1: Clicking the backdrop overlay fires onClose exactly once — click propagation to the overlay handler works correctly
  • Test 2: Clicking inside the modal panel does not call onClose — e.stopPropagation() correctly prevents bubbling to the backdrop
  • Test 3: mouseEnter on the QR group div confirms hover overlay content (Copy Image, Save File) is present in the DOM — tooltip content available to pointer users
  • Test 4: mouseLeave on the QR group confirms the overlay retains its opacity-0 class — hide-on-leave markup is intact
  • Test 5: Full touch sequence (touchStarttouchEndclick) on the Share on X button fires the handler exactly once — touch events do not duplicate or suppress the click

Pillar

  • 🛠️ Other (Bug fix, refactoring, docs)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors.
  • My commits follow the Conventional Commits format.
  • I have starred the repo.
  • I have made sure that i have only one commit to merge in this PR.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 3, 2026

@Subhooo5 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Subhooo5
Copy link
Copy Markdown
Contributor Author

Subhooo5 commented Jun 3, 2026

Hey @JhaSourav07 Test added successfully. All existing tests pass locally. Feel free to review, add necessary labels and merge it. 🫂🚀

@JhaSourav07 JhaSourav07 added GSSoC 2026 level:intermediate Moderate complexity tasks quality:exceptional Outstanding contribution with exceptional implementation quality, testing. gssoc:approved PR has been reviewed and accepted for valid contribution points labels Jun 4, 2026
@JhaSourav07 JhaSourav07 merged commit 6eb3512 into JhaSourav07:main Jun 4, 2026
9 of 10 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jun 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

🎉 Congratulations @Subhooo5! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points GSSoC 2026 level:intermediate Moderate complexity tasks quality:exceptional Outstanding contribution with exceptional implementation quality, testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(ShareSheet-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5)

2 participants