@@ -14,12 +14,16 @@ import {
14
14
} from '../../../utils/payments' ;
15
15
const { shopper, merchant } = require ( '@woocommerce/e2e-utils' ) ;
16
16
17
+ // const UPE_METHOD_CHECKBOXES = [
18
+ // "//label[contains(text(), 'giropay')]/preceding-sibling::span/input[@type='checkbox']",
19
+ // // "//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']",
22
+ // // "//label[contains(text(), 'Sofort')]/preceding-sibling::span/input[@type='checkbox']",
23
+ // ];
24
+
17
25
const UPE_METHOD_CHECKBOXES = [
18
- "//label[contains(text(), 'giropay')]/preceding-sibling::span/input[@type='checkbox']" ,
19
- "//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']" ,
22
- "//label[contains(text(), 'Sofort')]/preceding-sibling::span/input[@type='checkbox']" ,
26
+ '#inspector-checkbox-control-7' , // giropay
23
27
] ;
24
28
25
29
describe ( 'Enabled UPE with deferred intent creation' , ( ) => {
@@ -28,6 +32,7 @@ describe( 'Enabled UPE with deferred intent creation', () => {
28
32
await merchantWCP . enablePaymentMethod ( UPE_METHOD_CHECKBOXES ) ;
29
33
await merchant . logout ( ) ;
30
34
await shopper . login ( ) ;
35
+ console . log ( 'a' ) ;
31
36
} ) ;
32
37
33
38
afterAll ( async ( ) => {
@@ -39,11 +44,15 @@ describe( 'Enabled UPE with deferred intent creation', () => {
39
44
40
45
describe ( 'Enabled UPE with deferred intent creation' , ( ) => {
41
46
it ( 'should successfully place order with Giropay' , async ( ) => {
47
+ console . log ( 'b' ) ;
42
48
await shopperWCP . goToShopWithCurrency ( 'EUR' ) ;
49
+ console . log ( 'c' ) ;
43
50
await setupProductCheckout (
44
51
config . get ( 'addresses.customer.billing' )
45
52
) ;
53
+ console . log ( 'd' ) ;
46
54
await selectGiropayOnCheckout ( page ) ;
55
+ console . log ( 'e' ) ;
47
56
await shopper . placeOrder ( ) ;
48
57
await completeGiropayPayment ( page , 'success' ) ;
49
58
await page . waitForNavigation ( {
0 commit comments