mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-09 16:01:39 -04:00
* feat: add stripe donate page test for non donors * fix: revert changes to see if ev is passed correctly * feat: download artifacts * fix: add quotations for spec args with global patterns * fix: remove firefox from cypress donation tests * fix: trigger action on main push * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * feat: remove matrix and simplify Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
describe('Donate page', () => {
|
|
it('Should render correctly', () => {
|
|
cy.visit('/donate');
|
|
cy.title().should('eq', 'Support our nonprofit | freeCodeCamp.org');
|
|
|
|
cy.contains('Confirm your donation of $5 / month:').should('be.visible');
|
|
|
|
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?'
|
|
);
|
|
});
|
|
});
|