diff --git a/packages/module/src/catalog/QuickStartTile.tsx b/packages/module/src/catalog/QuickStartTile.tsx index a4daae8a..4db04b72 100644 --- a/packages/module/src/catalog/QuickStartTile.tsx +++ b/packages/module/src/catalog/QuickStartTile.tsx @@ -132,18 +132,14 @@ const QuickStartTile: FC = ({ /> ) : undefined; + const cardClasses = `pfext-catalog-item${isActive ? ' pf-m-current' : ''}`; + return ( { ); const catalogTile = wrapper.find(Card); expect(catalogTile.exists()).toBeTruthy(); + expect(catalogTile.hasClass('pf-m-current')).toBe(false); }); it('should load proper catalog tile with featured property', () => { @@ -31,6 +32,6 @@ describe('QuickStartTile', () => { ); const catalogTile = wrapper.find(Card); expect(catalogTile.exists()).toBeTruthy(); - expect(catalogTile.prop('isSelected')).toBe(true); + expect(catalogTile.hasClass('pf-m-current')).toBe(true); }); });