feat: test landing page render (#85)

This commit is contained in:
RustamRu
2025-02-15 19:46:43 +03:00
parent 88242c5681
commit bbc96a2f27
11 changed files with 529 additions and 17 deletions

View File

@@ -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>