Skip to content

Commit d881686

Browse files
authored
Test(FeatureCard): Verify hover class is applied to the container (JhaSourav07#804)
## Description Adds a test asserting the heading element has the hover class. Fixes JhaSourav07#714 ## Pillar - [ ] 🎨 Pillar 1 β€” New Theme Design - [ ] πŸ“ Pillar 2 β€” Geometric SVG Improvement - [ ] πŸ• Pillar 3 β€” Timezone Logic Optimization - [X] πŸ› οΈ Other (Bug fix, refactoring, docs) ## Visual Preview No visual preview as this PR just adds a testcase. ## Checklist before requesting a review: - [X ] I have read the `CONTRIBUTING.md` file. - [X] I have tested these changes locally (`localhost:3000/api/streak?user=YOUR_USERNAME`). - [X] I have run `npm run format` and `npm run lint` locally and resolved all errors (CI will fail otherwise). - [X] My commits follow the Conventional Commits format (e.g., `feat(themes): ...`, `fix(calculate): ...`). - [ ] I have updated `README.md` if I added a new theme or URL parameter. - [X] I have started the repo. - [X] I have made sure that i have only one commit to merge in this PR. - [ ] The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts). - [X] (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.
2 parents 6c969f6 + d1d6e6b commit d881686

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

β€Žapp/components/FeatureCard.test.tsxβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ describe('FeatureCard', () => {
108108
const iconWrapper = container.querySelector('.bg-white\\/5');
109109
expect(iconWrapper).toBeTruthy();
110110
});
111+
112+
it('applies group-hover:text-emerald-400 to the heading', () => {
113+
render(<FeatureCard {...defaultProps} />);
114+
115+
const heading = screen.getByRole('heading', { level: 3 });
116+
117+
expect(heading.className).toContain('group-hover:text-emerald-400');
118+
});
111119
});
112120

113121
describe('multiple instances', () => {

0 commit comments

Comments
Β (0)