From 1101b086a3bc08590fccb220a134cab02414d6ac Mon Sep 17 00:00:00 2001 From: YaelChen Date: Wed, 6 Nov 2024 20:55:52 +0200 Subject: [PATCH 1/2] fix: Temporary fix suggestion of the unreadable text in the Donate Modal --- src/pages/DonateModal/DonateModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/DonateModal/DonateModal.tsx b/src/pages/DonateModal/DonateModal.tsx index a37b8aba..bb11b0fd 100644 --- a/src/pages/DonateModal/DonateModal.tsx +++ b/src/pages/DonateModal/DonateModal.tsx @@ -24,6 +24,8 @@ const DonateModal: React.FC = ({ isVisible, onClose }) => { From e95574bdcc93de0837171c70fbeb28beaac3b650 Mon Sep 17 00:00:00 2001 From: YaelChen Date: Mon, 11 Nov 2024 12:44:49 +0200 Subject: [PATCH 2/2] test: links in questions section inside About --- tests/about.spec.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/about.spec.ts b/tests/about.spec.ts index 43169e0d..538ce6e3 100644 --- a/tests/about.spec.ts +++ b/tests/about.spec.ts @@ -51,3 +51,24 @@ test.describe('About Page Tests', () => { await expect(page).toHaveURL('https://creativecommons.org/') }) }) + +test('clicking the links under "questions" should lead to the correct contact ways', async ({ + page, +}) => { + await page.goto('/') + await page.getByRole('link', { name: 'אודות' }).click() + await page.getByRole('link', { name: 'צרו איתנו קשר' }).click() + await expect(page).toHaveURL('https://www.hasadna.org.il/צור-קשר/') + await page.goto('/about') + await page.getByRole('link', { name: 'דברו איתנו על זה בסלאק' }).click() + await expect(page).toHaveURL( + 'https://hasadna.slack.com/join/shared_invite/zt-167h764cg-J18ZcY1odoitq978IyMMig#/shared-invite/email', + ) + await page.goto('/about') + await page + .getByRole('link', { name: 'שרתים עולים כסף - עזרו לנו להמשיך לתחזק ולפתח את הפרויקט!' }) + .click() + await expect(page).toHaveURL( + 'https://www.jgive.com/new/he/ils/donation-targets/3268#donation-modal', + ) +})