feat: test landing page render (#85)
This commit is contained in:
@@ -30,18 +30,19 @@ const Page: FC = () => {
|
||||
<HeroSection
|
||||
data={landingSuccessStub['body']['hero-section']}
|
||||
flexShrink={0}
|
||||
data-testid='hero-section'
|
||||
/>
|
||||
<VStack as='main' flexGrow={1}>
|
||||
{landingSuccessStub.body.sections.map(({ type, ...data }, i) => {
|
||||
if (isBenefitsSectionData(type, data)) {
|
||||
return <BenefitsSection key={i} data={data} />;
|
||||
return <BenefitsSection key={i} data={data} data-testid='benefits-section' />;
|
||||
}
|
||||
if (isSocialProofSectionData(type, data)) {
|
||||
return <SocialProofSection key={i} data={data} />;
|
||||
return <SocialProofSection key={i} data={data} data-testid='social-proof-section' />;
|
||||
}
|
||||
})}
|
||||
</VStack>
|
||||
<Footer />
|
||||
<Footer data-testid='footer' />
|
||||
</VStack>
|
||||
</Container>
|
||||
</LandingThemeProvider>
|
||||
|
||||
Reference in New Issue
Block a user