Skip to content

Commit 4d16a04

Browse files
committed
fix(test): check 'OUR IMPACT' section title and stats card test
1 parent 7ca29a5 commit 4d16a04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/pages/landing-page.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ test.describe("Landing page tests", () => {
7070

7171
test("Check 'OUR IMPACT' section title and stats card", async ({ page }) => {
7272
// eslint-disable-next-line quotes
73-
const ourImpactSection = page.locator('text="OUR IMPACT"');
73+
const ourImpactSection = page.getByText("our impact");
74+
await ourImpactSection.scrollIntoViewIfNeeded();
7475
await expect(ourImpactSection).toBeVisible();
7576

7677
const statsCards = page.locator(".stats-card");
77-
await expect(statsCards).toHaveCountGreaterThan(0);
78+
await expect(statsCards).toBeVisible();
7879
});
7980

8081
test("Check 'TESTIMONIALS' section title and testimonial card in marquee", async ({

0 commit comments

Comments
 (0)