Skip to content

Commit 52087ac

Browse files
committed
base
1 parent 5a145ea commit 52087ac

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cypress/components/Card.cy.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ describe('Card Component', () => {
4444
cy.get('[data-test="card-body"]').should('have.class', 'text-[1rem]');
4545
});
4646

47+
it('should render Roadmap card with base header size', () => {
48+
const baseHeaderProps: CardProps = {
49+
...RoadmapProps,
50+
headerSize: 'base',
51+
};
52+
cy.mount(<Card {...baseHeaderProps} />);
53+
cy.get('[data-test="card-title"]').should('have.class', 'text-[1rem]');
54+
});
55+
4756
// Render the Roadmap card with extended body text
4857
it('should render Roadmap card with extended body text', () => {
4958
const extendedBody = { ...RoadmapProps, extended: true };
@@ -86,4 +95,4 @@ describe('Card Component', () => {
8695
cy.get('[data-test="card-title"]').should('have.class', 'text-[0.9rem]');
8796
cy.get('[data-test="card-body"]').should('have.class', 'text-[1.5rem]');
8897
});
89-
});
98+
});

0 commit comments

Comments
 (0)