From b8cedbcc657a0e098daaf37f3759ce82a2ae4a4c Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 31 May 2022 18:27:37 +0200 Subject: [PATCH] test: simplify donation page tests (#46253) --- .../integration/learn/donate/donate-page-default.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cypress/integration/learn/donate/donate-page-default.js b/cypress/integration/learn/donate/donate-page-default.js index e784ac1f005..6eab48a43e9 100644 --- a/cypress/integration/learn/donate/donate-page-default.js +++ b/cypress/integration/learn/donate/donate-page-default.js @@ -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?');