Skip to content

Commit e1fb89b

Browse files
committed
chore: re-use in cypress
1 parent 1f9c871 commit e1fb89b

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

cypress-tests/cypress/e2e/configs/Payment/Commons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const PaymentMethodCardDetails = {
3333
card_holder_name: "Joseph Doe",
3434
};
3535

36-
const singleUseMandateData = {
36+
export const singleUseMandateData = {
3737
customer_acceptance: customerAcceptance,
3838
mandate_type: {
3939
single_use: {
@@ -43,7 +43,7 @@ const singleUseMandateData = {
4343
},
4444
};
4545

46-
const multiUseMandateData = {
46+
export const multiUseMandateData = {
4747
customer_acceptance: customerAcceptance,
4848
mandate_type: {
4949
multi_use: {

cypress-tests/cypress/e2e/configs/Payment/Payload.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
11
import {
22
customerAcceptance,
33
connectorDetails as commonConnectorDetails,
4+
singleUseMandateData,
5+
multiUseMandateData,
46
} from "./Commons";
57
import { getCustomExchange } from "./Modifiers";
68

79
const DUPLICATION_TIMEOUT = 30000; // 30 seconds
810

9-
const singleUseMandateData = {
10-
customer_acceptance: customerAcceptance,
11-
mandate_type: {
12-
single_use: {
13-
amount: 8000,
14-
currency: "USD",
15-
},
16-
},
17-
};
18-
19-
const multiUseMandateData = {
20-
customer_acceptance: customerAcceptance,
21-
mandate_type: {
22-
multi_use: {
23-
amount: 8000,
24-
currency: "USD",
25-
},
26-
},
27-
};
28-
2911
const successfulNo3DSCardDetails = {
3012
card_number: "4242424242424242",
3113
card_exp_month: "12",

0 commit comments

Comments
 (0)