New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Donation tests #39980
Comments
@Twaha-Rahman, since you have been spearheading our test coverage expansion efforts, I was wondering if you have any thoughts on this matter before we start with the implementation? |
I don't know much about the Also maybe add the search feature to the list too. The ability to test the |
It wont be trivial for a non-staff member to test these out without the Stripe setup (and PayPal etc). I recommend this to be taken up one of the Staff instead. |
Sure, we can handle this - we just wanted to track it somewhere and see if anyone had any input. |
More discussion in: #40702 |
Update: @ahmadabdolsaheb is working on this. |
#49381 Donation block popping for new responsive web design should be implemented as well. |
We should have more tests for /donate and the donate form. Cypress tests, if possible, so that we can confirm that the donation flow works correctly. Since external services (PayPal and Stripe) are involved, we should find a way to stub those out.
For example:
freeCodeCamp/client/src/components/Donation/DonateForm.js
Lines 219 to 223 in 6de5144
would need to be replaced by a stub. That way we can test everything around that (selection of different durations and amounts, what happens on success and failure and so on) without relying on the UI of an external service.
Here are the types of donations we need tests for:
The text was updated successfully, but these errors were encountered: