-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01db46e
commit f82a138
Showing
6 changed files
with
528 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,61 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe(("Donations"),() => { | ||
it("Basic Donations",()=> { | ||
cy.BasicDonation() | ||
cy.cardPayment("4242424242424242", "424", "242") | ||
}) | ||
|
||
it("Gift Donation", () => { | ||
cy.giftDonation() | ||
cy.cardPayment("4242424242424242", "424", "242") | ||
}) | ||
|
||
// This test does not work in all enviroments as language is auto detected | ||
// and "Germany" cannot be found in other languages then English. | ||
// | ||
// This also fails for other reasons: | ||
// `cy.click()` failed because the center of this element is hidden from view | ||
/* | ||
import cy from 'cypress'; | ||
|
||
describe('Donations', () => { | ||
it('Basic Donations', () => { | ||
cy.BasicDonation(); | ||
cy.cardPayment('4242424242424242', '424', '242'); | ||
}); | ||
|
||
it('Gift Donation', () => { | ||
cy.giftDonation(); | ||
cy.cardPayment('4242424242424242', '424', '242'); | ||
}); | ||
|
||
// This test does not work in all enviroments as language is auto detected | ||
// and "Germany" cannot be found in other languages then English. | ||
// | ||
// This also fails for other reasons: | ||
// `cy.click()` failed because the center of this element is hidden from view | ||
/* | ||
it("Change currency and custom tree donation", () => { | ||
cy.customTreeDonation() | ||
cy.cardPayment("4242424242424242", "424", "242") | ||
}) | ||
*/ | ||
|
||
it("Multiple Donations", () => { | ||
cy.multipleDonation() | ||
cy.cardPayment("4242424242424242", "424", "242") | ||
}) | ||
|
||
// International Cards | ||
it("Testing with Germany Visa", () => { | ||
cy.BasicDonation() | ||
cy.cardPayment("4000002760000016", "424", "242") | ||
}); | ||
|
||
it("Testing with Spain Visa", () => { | ||
cy.spainDonation() | ||
cy.cardPayment("4000007240000007", "424", "242") | ||
}); | ||
|
||
// error testing | ||
it("Testing with Charge declined error", () => { | ||
cy.BasicDonation() | ||
cy.paymentError("4000000000000002", "424", "242") | ||
}); | ||
it("Testing with Insufficient funds error", () => { | ||
cy.BasicDonation() | ||
cy.paymentError("4000000000009995", "424", "242") | ||
}); | ||
it("Testing with CVC fails", () => { | ||
cy.BasicDonation() | ||
cy.paymentError("4000000000000101", "424", "242") | ||
}); | ||
|
||
it("Gift Removal using Search bar", () => { | ||
cy.giftRemove() | ||
cy.cardPayment("4242424242424242", "424", "242") | ||
}) | ||
}) | ||
it('Multiple Donations', () => { | ||
cy.multipleDonation(); | ||
cy.cardPayment('4242424242424242', '424', '242'); | ||
}); | ||
|
||
// International Cards | ||
it('Testing with Germany Visa', () => { | ||
cy.BasicDonation(); | ||
cy.cardPayment('4000002760000016', '424', '242'); | ||
}); | ||
|
||
it('Testing with Spain Visa', () => { | ||
cy.spainDonation(); | ||
cy.cardPayment('4000007240000007', '424', '242'); | ||
}); | ||
|
||
// error testing | ||
it('Testing with Charge declined error', () => { | ||
cy.BasicDonation(); | ||
cy.paymentError('4000000000000002', '424', '242'); | ||
}); | ||
it('Testing with Insufficient funds error', () => { | ||
cy.BasicDonation(); | ||
cy.paymentError('4000000000009995', '424', '242'); | ||
}); | ||
it('Testing with CVC fails', () => { | ||
cy.BasicDonation(); | ||
cy.paymentError('4000000000000101', '424', '242'); | ||
}); | ||
|
||
it('Gift Removal using Search bar', () => { | ||
cy.giftRemove(); | ||
cy.cardPayment('4242424242424242', '424', '242'); | ||
}); | ||
}); |
Oops, something went wrong.