test(DashboardPage): verify all three StatsCards render with correct titles#774
Open
Tiya22gif wants to merge 1 commit into
Open
test(DashboardPage): verify all three StatsCards render with correct titles#774Tiya22gif wants to merge 1 commit into
Tiya22gif wants to merge 1 commit into
Conversation
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. |
|
👋 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:
A maintainer will review your PR shortly. Hang tight! 🚀 |
|
👋 Hey @Tiya22gif, it looks like you didn't use our PR template! The section Please update your PR description to include all required sections so we can review this properly:
You can find the full template in CONTRIBUTING.md. Just edit your PR description and the |
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 #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