test: simplify donation page tests (#46253)

This commit is contained in:
Oliver Eyton-Williams 2022-05-31 18:27:37 +02:00 committed by GitHub
parent a335127379
commit b8cedbcc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,10 @@
describe('Donate page', () => {
before(() => {
cy.clearCookies();
cy.exec('npm run seed');
cy.login();
it('Should render correctly', () => {
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?');