fix: adjust donation confirmation text (#41140)

This commit is contained in:
Ahmad Abdolsaheb
2021-02-16 23:52:52 +03:00
committed by GitHub
parent 2a2657d36c
commit 05a97d19fb
2 changed files with 5 additions and 3 deletions

View File

@ -320,9 +320,7 @@ class DonateForm extends Component {
{t('donate.confirm-1')} {donationAmount / 100}:
</b>
) : (
<b>
{t('donate.confirm-2')} {donationAmount / 100} / {donationDuration}:
</b>
<b>{t('donate.confirm-3', { usd: donationAmount / 100 })}:</b>
)}
<Spacer />
<div className='donate-btn-group'>

View File

@ -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?'