-
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.
Merge branch 'develop' into feature/bulk-code-generation
- Loading branch information
Showing
94 changed files
with
28,332 additions
and
29,707 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"presets": [ | ||
"next/babel" | ||
] | ||
} | ||
"presets": ["next/babel"] | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file was deleted.
Oops, something went wrong.
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.