From 05a97d19fbafa2c3fd1dad72b03b528a2caa33b7 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Tue, 16 Feb 2021 23:52:52 +0300 Subject: [PATCH] fix: adjust donation confirmation text (#41140) --- client/src/components/Donation/DonateForm.js | 4 +--- cypress/integration/learn/donate/donate-page-default.js | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/Donation/DonateForm.js b/client/src/components/Donation/DonateForm.js index 745b3992475..57e204d76cd 100644 --- a/client/src/components/Donation/DonateForm.js +++ b/client/src/components/Donation/DonateForm.js @@ -320,9 +320,7 @@ class DonateForm extends Component { {t('donate.confirm-1')} {donationAmount / 100}: ) : ( - - {t('donate.confirm-2')} {donationAmount / 100} / {donationDuration}: - + {t('donate.confirm-3', { usd: donationAmount / 100 })}: )}
diff --git a/cypress/integration/learn/donate/donate-page-default.js b/cypress/integration/learn/donate/donate-page-default.js index 7ddb8a188eb..91d4e01a7c1 100644 --- a/cypress/integration/learn/donate/donate-page-default.js +++ b/cypress/integration/learn/donate/donate-page-default.js @@ -22,6 +22,10 @@ describe('Donate page', () => { cy.title().should('eq', 'Support our nonprofit | freeCodeCamp.org'); }); + it('Should display default amount and duration', () => { + cy.contains('Confirm your donation of $5 / month:').should('be.visible'); + }); + it('Should have support section', () => { cy.contains( 'Want to make a bigger one-time donation, mail us a check, or give in other ways?'