Skip to content

Commit d1d6e6b

Browse files
committed
test(FeatureCard): assert group-hover:text-emerald-400 class on heading
1 parent e15a46a commit d1d6e6b

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)