We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068a6dc commit 938edbeCopy full SHA for 938edbe
design/ui/card/card.spec.tsx
@@ -81,4 +81,18 @@ describe('Card', () => {
81
);
82
expect(screen.getByTestId('card')).toHaveClass('custom-class');
83
});
84
+
85
+ it('renders footer content when provided', () => {
86
+ render(
87
+ <Card
88
+ title="Test Title"
89
+ footer={<button>Action Button</button>}
90
+ >
91
+ <p>Test Content</p>
92
+ </Card>
93
+ );
94
95
+ expect(screen.getByText('Action Button')).toBeInTheDocument();
96
+ expect(screen.getByRole('button')).toBeInTheDocument();
97
+ });
98
0 commit comments