Skip to content

Commit caed3c4

Browse files
committed
fix(test): add appropriate selector to check for 'WHAT WE DO' content
1 parent 009df0b commit caed3c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/landingPage/sections/WhatWeDo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function WhatWeDoCard({ card, index }) {
2525
const { title, description, image, link } = card;
2626
return (
2727
<div
28-
className={`border bg-white p-2 w-full rounded-2xl md:rounded-[20px] ${
28+
className={`border bg-white p-2 w-full rounded-2xl md:rounded-[20px] what-we-do-content ${
2929
index === 0 && "lg:col-span-2"
3030
}`}
3131
>

tests/pages/landing-page.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test.describe("Landing page tests", () => {
4343

4444
test("Check 'WHAT WE DO' section title and content", async ({ page }) => {
4545
// eslint-disable-next-line quotes
46-
const whatWeDoSection = page.locator('text="WHAT WE DO"');
46+
const whatWeDoSection = page.locator('text="what we do"');
4747
await expect(whatWeDoSection).toBeVisible();
4848

4949
const whatWeDoContent = page.locator(".what-we-do-content");

0 commit comments

Comments
 (0)