Skip to content

test(DashboardPage): verify all three StatsCards render with correct titles - #774

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
Tiya22gif:test-dashboard-statscards
May 28, 2026
Merged

test(DashboardPage): verify all three StatsCards render with correct titles#774
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
Tiya22gif:test-dashboard-statscards

Conversation

@Tiya22gif

@Tiya22gif Tiya22gif commented May 27, 2026

Copy link
Copy Markdown
Contributor

▶ Description

Fixes #742

This PR improves test coverage for the DashboardPage by verifying that all three "StatsCard" components render correctly with the expected titles and values.

▶ Changes Made
Verified the following StatsCard text content:
● "Current Streak: 5"
● "Peak Streak: 15"
● "Contributions: 500"

Added a new assertion to ensure exactly three StatsCard components are rendered:
"ts id="kgduut"
expect(screen.getAllByTestId('stats-card')).toHaveLength(3);"

▶ Pillar
Testing / Quality Assurance

▶ Validation
Successfully ran the complete Vitest test suite locally.
"txt id='uw3jzu'
Test Files 27 passed (27)
Tests 353 passed (353)"
All existing tests continue to pass successfully.

▶ Why This Matters
This improves dashboard reliability by ensuring:
● all expected statistics render consistently
● the exact number of StatsCard components is validated
● future UI regressions can be caught automatically

▶ Checklist
[x] Added StatsCard count assertion
[x] Verified all required stat titles
[x] Followed existing testing conventions
[x] All tests passing
[x] No unrelated files modified

Screenshot 2026-05-27 230731 Screenshot 2026-05-27 230759

@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

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

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @Tiya22gif, welcome to CommitPulse! 🎉

Thanks for opening your first pull request — this is a big deal and we appreciate the effort!

While you wait for a review, please double-check:

  • ✅ You've read the CONTRIBUTING.md checklist
  • npm run lint, npm run format, and npm run test all pass locally
  • ✅ Your PR has a visual preview if it touches any SVG output
  • 💬 You've joined our Discord for faster PR feedback

A maintainer will review your PR shortly. Hang tight! 🚀

@github-actions github-actions Bot added the needs-details This PR is missing required description details. label May 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @Tiya22gif, it looks like you didn't use our PR template!

The section ## Description is missing from your PR description.

Please update your PR description to include all required sections so we can review this properly:

  • ## Description — What does this PR do? Which issue does it fix?
  • ## Pillar — Which contribution pillar does this fall under?
  • ## Checklist — Have you ticked off the quality checklist?

You can find the full template in CONTRIBUTING.md. Just edit your PR description and the needs-details label will be removed automatically. 🙌

@github-actions github-actions Bot added the type:testing Adding, updating, or fixing tests label May 27, 2026
@JhaSourav07 JhaSourav07 added GSSoC 2026 level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:exceptional Outstanding contribution with exceptional implementation quality, testing. gssoc:approved PR has been reviewed and accepted for valid contribution points mentor:Aamod007 labels May 28, 2026
@JhaSourav07
JhaSourav07 merged commit a439dd3 into JhaSourav07:main May 28, 2026
12 of 13 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone May 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @Tiya22gif! 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! 💻✨

@JhaSourav07 JhaSourav07 added gssoc:approved PR has been reviewed and accepted for valid contribution points and removed gssoc:approved PR has been reviewed and accepted for valid contribution points labels Jun 17, 2026
MasterJi27 pushed a commit to MasterJi27/commitpulse that referenced this pull request Jul 4, 2026
…titles (JhaSourav07#774)

▶ Description

Fixes JhaSourav07#742

This PR improves test coverage for the DashboardPage by verifying that
all three "StatsCard" components render correctly with the expected
titles and values.

▶ Changes Made
Verified the following StatsCard text content:
● "Current Streak: 5"
● "Peak Streak: 15"
● "Contributions: 500"

Added a new assertion to ensure exactly three StatsCard components are
rendered:
"ts id="kgduut"
expect(screen.getAllByTestId('stats-card')).toHaveLength(3);"

▶ Pillar
Testing / Quality Assurance

▶ Validation
Successfully ran the complete Vitest test suite locally.
"txt id='uw3jzu'
Test Files 27 passed (27)
Tests 353 passed (353)"
All existing tests continue to pass successfully.


▶ Why This Matters
This improves dashboard reliability by ensuring:
● all expected statistics render consistently
● the exact number of StatsCard components is validated
● future UI regressions can be caught automatically


▶ Checklist
[x] Added StatsCard count assertion
[x] Verified all required stat titles
[x] Followed existing testing conventions
[x] All tests passing
[x] No unrelated files modified


<img width="1920" height="1080" alt="Screenshot 2026-05-27 230731"
src="https://github.com/user-attachments/assets/668e1ea7-a78c-4f35-8996-4c420b999c6a"
/>
<img width="1920" height="1080" alt="Screenshot 2026-05-27 230759"
src="https://github.com/user-attachments/assets/45424146-ec96-496e-8988-c242a496cd86"
/>
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:beginner Small changes Usually isolated fixes or simple UI/text updates. mentor:Aamod007 needs-details This PR is missing required description details. quality:exceptional Outstanding contribution with exceptional implementation quality, testing. type:testing Adding, updating, or fixing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(DashboardPage): verify all three StatsCards render with correct titles

3 participants