* feat: increate minimum challenge requirement AB test * fix: adjust tests Co-authored-by: ahmad abdolsaheb <home@mac-16.local>
45 lines
1.5 KiB
JavaScript
45 lines
1.5 KiB
JavaScript
describe('Donate page', () => {
|
|
before(() => {
|
|
cy.clearCookies();
|
|
cy.exec('npm run seed');
|
|
cy.login();
|
|
cy.visit('/donate');
|
|
});
|
|
|
|
it('Should render', () => {
|
|
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 FAQ section', () => {
|
|
cy.contains('Frequently asked questions');
|
|
cy.contains('How can I get help with my donations?');
|
|
cy.contains('How transparent is freeCodeCamp.org?');
|
|
cy.contains('How efficient is freeCodeCamp?');
|
|
cy.contains('How can I make a one-time donation?');
|
|
cy.contains(
|
|
'Does freeCodeCamp accept donations in Bitcoin or other cryptocurrencies?'
|
|
);
|
|
cy.contains('Can I mail a physical check?');
|
|
cy.contains(
|
|
'How can I set up matching gifts from my employer, or payroll deductions?'
|
|
);
|
|
cy.contains('How can I set up an Endowment Gift to freeCodeCamp.org?');
|
|
cy.contains('How can I set up a Legacy gift to freeCodeCamp.org?').should(
|
|
'be.visible'
|
|
);
|
|
cy.contains('How can I donate stock to freeCodeCamp.org?').should(
|
|
'be.visible'
|
|
);
|
|
cy.contains(
|
|
'I set up a monthly donation, but I need to update or pause the monthly recurrence. How can I do this?'
|
|
);
|
|
cy.contains(
|
|
'Is there anything else I can learn about donating to freeCodeCamp.org?'
|
|
);
|
|
});
|
|
});
|