fix: adjust donation confirmation text (#41140)
This commit is contained in:
@ -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'>
|
||||
|
@ -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?'
|
||||
|
Reference in New Issue
Block a user