Skip to content

Commit 236e05e

Browse files
author
Timur Karimov
committed
add more tests
1 parent a65f2b4 commit 236e05e

File tree

1 file changed

+42
-41
lines changed

1 file changed

+42
-41
lines changed

tests/e2e/specs/upe-split/shopper/shopper-deferred-intent-creation-upe-enabled.spec.js

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const { shopper, merchant } = require( '@woocommerce/e2e-utils' );
1717
const UPE_METHOD_CHECKBOXES = [
1818
"//label[contains(text(), 'giropay')]/preceding-sibling::span/input[@type='checkbox']",
1919
"//label[contains(text(), 'Bancontact')]/preceding-sibling::span/input[@type='checkbox']",
20-
// "//label[contains(text(), 'EPS')]/preceding-sibling::span/input[@type='checkbox']",
21-
// "//label[contains(text(), 'iDEAL')]/preceding-sibling::span/input[@type='checkbox']",
20+
"//label[contains(text(), 'EPS')]/preceding-sibling::span/input[@type='checkbox']",
21+
"//label[contains(text(), 'iDEAL')]/preceding-sibling::span/input[@type='checkbox']",
22+
"//label[contains(text(), 'Przelewy24')]/preceding-sibling::span/input[@type='checkbox']",
2223
// "//label[contains(text(), 'Sofort')]/preceding-sibling::span/input[@type='checkbox']",
2324
// '#inspector-checkbox-control-7', // giropay
2425
// '#inspector-checkbox-control-5', // Bancontact
@@ -68,46 +69,46 @@ describe( 'Enabled UPE with deferred intent creation', () => {
6869
await expect( page ).toMatch( 'Order received' );
6970
} );
7071

71-
// it( 'should successfully place order with EPS', async() => {
72-
// await shopperWCP.goToShopWithCurrency( 'EUR' );
73-
// await setupProductCheckout(
74-
// config.get( 'addresses.customer.billing' )
75-
// );
76-
// await selectOnCheckout( 'eps', page );
77-
// await shopper.placeOrder();
78-
// await completeRedirectedPayment( page, 'success' );
79-
// await page.waitForNavigation( {
80-
// waitUntil: 'networkidle0',
81-
// } );
82-
// await expect( page ).toMatch( 'Order received' );
83-
// });
72+
it( 'should successfully place order with EPS', async () => {
73+
await shopperWCP.goToShopWithCurrency( 'EUR' );
74+
await setupProductCheckout(
75+
config.get( 'addresses.customer.billing' )
76+
);
77+
await selectOnCheckout( 'eps', page );
78+
await shopper.placeOrder();
79+
await completeRedirectedPayment( page, 'success' );
80+
await page.waitForNavigation( {
81+
waitUntil: 'networkidle0',
82+
} );
83+
await expect( page ).toMatch( 'Order received' );
84+
} );
8485

85-
// it( 'should successfully place order with iDEAL', async() => {
86-
// await shopperWCP.goToShopWithCurrency( 'EUR' );
87-
// await setupProductCheckout(
88-
// config.get( 'addresses.customer.billing' )
89-
// );
90-
// await selectOnCheckout( 'ideal', page );
91-
// await shopper.placeOrder();
92-
// await completeRedirectedPayment( page, 'success' );
93-
// await page.waitForNavigation( {
94-
// waitUntil: 'networkidle0',
95-
// } );
96-
// await expect( page ).toMatch( 'Order received' );
97-
// });
86+
it( 'should successfully place order with iDEAL', async () => {
87+
await shopperWCP.goToShopWithCurrency( 'EUR' );
88+
await setupProductCheckout(
89+
config.get( 'addresses.customer.billing' )
90+
);
91+
await selectOnCheckout( 'ideal', page );
92+
await shopper.placeOrder();
93+
await completeRedirectedPayment( page, 'success' );
94+
await page.waitForNavigation( {
95+
waitUntil: 'networkidle0',
96+
} );
97+
await expect( page ).toMatch( 'Order received' );
98+
} );
9899

99-
// it( 'should successfully place order with Przelewy24', async() => {
100-
// await shopperWCP.goToShopWithCurrency( 'EUR' );
101-
// await setupProductCheckout(
102-
// config.get( 'addresses.customer.billing' )
103-
// );
104-
// await selectOnCheckout( 'p24', page );
105-
// await shopper.placeOrder();
106-
// await completeRedirectedPayment( page, 'success' );
107-
// await page.waitForNavigation( {
108-
// waitUntil: 'networkidle0',
109-
// } );
110-
// await expect( page ).toMatch( 'Order received' );
111-
// });
100+
it( 'should successfully place order with Przelewy24', async () => {
101+
await shopperWCP.goToShopWithCurrency( 'EUR' );
102+
await setupProductCheckout(
103+
config.get( 'addresses.customer.billing' )
104+
);
105+
await selectOnCheckout( 'p24', page );
106+
await shopper.placeOrder();
107+
await completeRedirectedPayment( page, 'success' );
108+
await page.waitForNavigation( {
109+
waitUntil: 'networkidle0',
110+
} );
111+
await expect( page ).toMatch( 'Order received' );
112+
} );
112113
} );
113114
} );

0 commit comments

Comments
 (0)