1
1
import { test , expect } from '../../../../fixtures/dropin.fixture' ;
2
2
import { URL_MAP } from '../../../../fixtures/URL_MAP' ;
3
- import { MAESTRO_CARD , PAYMENT_RESULT , TEST_CVC_VALUE , THREEDS2_CHALLENGE_PASSWORD } from '../../../utils/constants' ;
3
+ import { THREEDS2_MAESTRO_CARD , PAYMENT_RESULT , TEST_CVC_VALUE , THREEDS2_CHALLENGE_PASSWORD } from '../../../utils/constants' ;
4
4
import { Card } from '../../../../models/card' ;
5
5
import { getCardNumberLast4 } from '../../../utils/cards' ;
6
6
7
7
test . describe ( 'Stored Maestro card - cvc optional' , ( ) => {
8
8
// When user do not fill in the cvc
9
9
test ( 'should make a successful payment without the cvc code' , async ( { dropinWithSession, page } ) => {
10
10
await dropinWithSession . goto ( URL_MAP . dropinWithSession ) ;
11
- const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( MAESTRO_CARD ) ) ;
11
+ const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( THREEDS2_MAESTRO_CARD ) ) ;
12
12
13
13
const card = new Card ( page , paymentMethodDetailsLocator ) ;
14
14
@@ -22,7 +22,7 @@ test.describe('Stored Maestro card - cvc optional', () => {
22
22
// When user fills in the cvc
23
23
test ( 'should make a successful payment after filling in the correct 3ds challenge password' , async ( { dropinWithSession, page } ) => {
24
24
await dropinWithSession . goto ( URL_MAP . dropinWithSession ) ;
25
- const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( MAESTRO_CARD ) ) ;
25
+ const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( THREEDS2_MAESTRO_CARD ) ) ;
26
26
27
27
const card = new Card ( page , paymentMethodDetailsLocator ) ;
28
28
@@ -37,7 +37,7 @@ test.describe('Stored Maestro card - cvc optional', () => {
37
37
38
38
test ( 'should decline the payment after filling in the wrong 3ds challenge password' , async ( { dropinWithSession, page } ) => {
39
39
await dropinWithSession . goto ( URL_MAP . dropinWithSession ) ;
40
- const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( MAESTRO_CARD ) ) ;
40
+ const { paymentMethodDetailsLocator } = await dropinWithSession . selectFirstStoredPaymentMethod ( 'maestro' , getCardNumberLast4 ( THREEDS2_MAESTRO_CARD ) ) ;
41
41
42
42
const card = new Card ( page , paymentMethodDetailsLocator ) ;
43
43
0 commit comments