From 79a6a1bbd3d08e9ba669226e55cd246b60579b19 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Jul 2024 14:37:57 -0400 Subject: [PATCH] =?UTF-8?q?fix=20typo=20in=20button=20locator=20and=20upda?= =?UTF-8?q?te=20test=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [x] This pull request is on a [separate branch](https://docs.github.com/en/get-started/quickstart/github-flow) and not the main branch --- - added missing `#` in `"#btn-become-supporter"` - updated test on Landing Page to check this button (was missing) - ran Playwright test to confirm passed - #ISSUE_NUMBER --- frontend/tests/page-objects/LandingPage.ts | 2 +- frontend/tests/specs/landing-page.spec.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/tests/page-objects/LandingPage.ts b/frontend/tests/page-objects/LandingPage.ts index c522f21d9..ab8ea6f56 100644 --- a/frontend/tests/page-objects/LandingPage.ts +++ b/frontend/tests/page-objects/LandingPage.ts @@ -10,7 +10,7 @@ export default class LandingPage extends BasePage { GET_ORGANIZED_BUTTON: "#btn-get-organized", GROW_ORGANIZATION_BUTTON: "#btn-grow-organization", ABOUT_BUTTON: "#btn-activist", - BECOME_SUPPORTER_BUTTON: "btn-become-supporter", + BECOME_SUPPORTER_BUTTON: "#btn-become-supporter", OUR_SUPPORTERS_BUTTON: "#btn-our-supporters", }; diff --git a/frontend/tests/specs/landing-page.spec.ts b/frontend/tests/specs/landing-page.spec.ts index 7ad778615..9be90a69d 100644 --- a/frontend/tests/specs/landing-page.spec.ts +++ b/frontend/tests/specs/landing-page.spec.ts @@ -136,6 +136,7 @@ test.describe("Landing Page", () => { await expect(landingPage.getOrganizedButton).toBeVisible(); await expect(landingPage.growOrganizationButton).toBeVisible(); await expect(landingPage.aboutButton).toBeVisible(); + await expect(landingPage.becomeSupportersButton).toBeVisible(); await expect(landingPage.ourSupportersButton).toBeVisible(); }); });