Skip to content

Commit

Permalink
Fixed Giropay and Bancontact e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gpressutto5 committed Jan 24, 2024
1 parent 4b226b1 commit eaf2f00
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions tests/e2e/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,32 @@
"email": "[email protected]"
}
},
"upe-customer": {
"billing": {
"be": {
"firstname": "I am",
"lastname": "Customer",
"company": "Automattic",
"country": "Belgium",
"addressfirstline": "Rue de l’Étuve, 1000",
"addresssecondline": "billing-be",
"city": "Bruxelles",
"phone": "123456789",
"email": "[email protected]"
},
"de": {
"firstname": "I am",
"lastname": "Customer",
"company": "Automattic",
"country": "Germany",
"addressfirstline": "Petuelring 130",
"addresssecondline": "billing-de",
"city": "München",
"phone": "123456789",
"email": "[email protected]"
}
}
},
"subscriptions-customer": {
"billing": {
"firstname": "I am",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ describe( 'Enabled UPE with deferred intent creation', () => {
describe( 'Enabled UPE with deferred intent creation', () => {
it( 'should successfully place order with Giropay', async () => {
await setupProductCheckout(
config.get( 'addresses.customer.billing' )
config.get( 'addresses.upe-customer.billing.de' )
);
page.waitFor( 1000 );
await selectOnCheckout( 'giropay', page );
await shopper.placeOrder();
await completeRedirectedPayment( page, 'success' );
Expand All @@ -54,8 +55,9 @@ describe( 'Enabled UPE with deferred intent creation', () => {

it( 'should successfully place order with Bancontact', async () => {
await setupProductCheckout(
config.get( 'addresses.customer.billing' )
config.get( 'addresses.upe-customer.billing.be' )
);
page.waitFor( 1000 );
await selectOnCheckout( 'bancontact', page );
await shopper.placeOrder();
await completeRedirectedPayment( page, 'success' );
Expand Down

0 comments on commit eaf2f00

Please sign in to comment.