diff --git a/components/BeOurFriends/BeOurFriends.tsx b/components/BeOurFriends/BeOurFriends.tsx index d5876012..2857b989 100644 --- a/components/BeOurFriends/BeOurFriends.tsx +++ b/components/BeOurFriends/BeOurFriends.tsx @@ -57,12 +57,19 @@ const BeOurFriends = () => { dir={direction} className="flex flex-col justify-start py-16 md:py-32" > -
+
-
+
{cards.map((card, index) => ( {

diff --git a/components/Home/TitleSection.tsx b/components/Home/TitleSection.tsx index 87f68c00..3fdd774f 100644 --- a/components/Home/TitleSection.tsx +++ b/components/Home/TitleSection.tsx @@ -6,7 +6,10 @@ export default function TitleSection() { return (
-

+

{t('title')} -
{t('subTitle')} diff --git a/components/Home/WhatNow.tsx b/components/Home/WhatNow.tsx index d855bfb1..a8da09ac 100644 --- a/components/Home/WhatNow.tsx +++ b/components/Home/WhatNow.tsx @@ -7,7 +7,7 @@ function WhatNow() { return (
-

{t('title')}

+

{t('title')}

@@ -20,7 +20,10 @@ function WhatNow() {

{t('paragraph')}

-
diff --git a/components/Paths/Paths.tsx b/components/Paths/Paths.tsx index aeee0885..67e90268 100644 --- a/components/Paths/Paths.tsx +++ b/components/Paths/Paths.tsx @@ -42,12 +42,19 @@ const variants = { export default function Paths() { return (
-
+
-
+
{paths.map((path, index) => ( { + await page.goto(BASE_URL); + + async function checkElementVisibility(elementTestId: string) { + const element = page.getByTestId(elementTestId); + element.scrollIntoViewIfNeeded(); + const isVisible = await element.isVisible(); + expect(isVisible).toBeTruthy(); + } + + await checkElementVisibility('homePage-title'); + await checkElementVisibility('homePage-discordLink'); + + await checkElementVisibility('linusTorvaldsQuote'); + + await checkElementVisibility('beOurFirendsTitle'); + await checkElementVisibility('beOurFirendsItemContainer'); + await checkElementVisibility('beOurFirendsItem0'); + await checkElementVisibility('beOurFirendsItem1'); + await checkElementVisibility('beOurFirendsItem2'); + await checkElementVisibility('beOurFirendsItem3'); + await checkElementVisibility('beOurFirendsItem4'); + await checkElementVisibility('beOurFirendsItem5'); + + await checkElementVisibility('pathsTitle'); + await checkElementVisibility('pathsTitleContainer'); + + await checkElementVisibility('pathsTitleItem0'); + await checkElementVisibility('pathsTitleItem1'); + await checkElementVisibility('pathsTitleItem2'); + + await checkElementVisibility('whatNowTitle'); + await checkElementVisibility('whatNowButton'); +});