@@ -23,21 +23,21 @@ describe('HeroSection Responsive Layout Requirements', () => {
2323 renderWithTheme ( < HeroSection { ...defaultProps } /> ) ;
2424 const heading = await screen . findByRole ( 'heading' , { level : 1 } ) ;
2525 const section = heading . closest ( 'section' ) ;
26- expect ( section ) . toHaveClass ( 'md: h-screen' ) ;
26+ expect ( section ) . toHaveClass ( 'min- h-screen' ) ;
2727 } ) ;
2828
2929 it ( 'has proper mobile height handling' , async ( ) => {
3030 renderWithTheme ( < HeroSection { ...defaultProps } /> ) ;
3131 const heading = await screen . findByRole ( 'heading' , { level : 1 } ) ;
3232 const section = heading . closest ( 'section' ) ;
33- expect ( section ) . toHaveClass ( 'py-8 ' ) ; // matches actual class
33+ expect ( section ) . toHaveClass ( 'pt-16 ' ) ; // accounts for fixed header
3434 } ) ;
3535
3636 it ( 'has responsive height classes for mobile and desktop' , async ( ) => {
3737 renderWithTheme ( < HeroSection { ...defaultProps } /> ) ;
3838 const heading = await screen . findByRole ( 'heading' , { level : 1 } ) ;
3939 const section = heading . closest ( 'section' ) ;
40- expect ( section ) . toHaveClass ( 'h-auto ' , 'md:h-screen ' ) ;
40+ expect ( section ) . toHaveClass ( 'min-h-screen ' , 'pt-16 ' ) ;
4141 } ) ;
4242
4343 it ( 'centers content horizontally and vertically' , async ( ) => {
@@ -46,6 +46,13 @@ describe('HeroSection Responsive Layout Requirements', () => {
4646 const section = heading . closest ( 'section' ) ;
4747 expect ( section ) . toHaveClass ( 'flex' , 'items-center' , 'justify-center' ) ;
4848 } ) ;
49+
50+ it ( 'overrides AnimatedSection default classes for proper centering' , async ( ) => {
51+ renderWithTheme ( < HeroSection { ...defaultProps } /> ) ;
52+ const heading = await screen . findByRole ( 'heading' , { level : 1 } ) ;
53+ const section = heading . closest ( 'section' ) ;
54+ expect ( section ) . toHaveClass ( '!max-w-none' , '!text-center' , '!py-0' ) ;
55+ } ) ;
4956 } ) ;
5057
5158 describe ( 'Container and Content Width' , ( ) => {
0 commit comments