File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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+ } ) ;
You can’t perform that action at this time.
0 commit comments