From 58bce57b82ef24798b27d6429865f70923656a4c Mon Sep 17 00:00:00 2001 From: "aritro.ghosh" Date: Wed, 9 Oct 2024 12:12:50 +0530 Subject: [PATCH] chore: added map for connector name and profile id in cypress utils --- cypress-tests/cypress/support/utils.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cypress-tests/cypress/support/utils.ts b/cypress-tests/cypress/support/utils.ts index 08a51636..ec6ce0aa 100644 --- a/cypress-tests/cypress/support/utils.ts +++ b/cypress-tests/cypress/support/utils.ts @@ -6,6 +6,16 @@ export const getClientURL = (clientSecret, publishableKey) => { return `${CLIENT_BASE_URL}?isCypressTestMode=true&clientSecret=${clientSecret}&publishableKey=${publishableKey}`; } +export const enum connectorEnum{ + TRUSTPAY, + ADYEN, + STRIPE +} +export const connectorProfileIdMapping = new Map([ + [connectorEnum.TRUSTPAY, "pro_eP323T9e4ApKpilWBfPA"], + [connectorEnum.ADYEN, "pro_Kvqzu8WqBZsT1OjHlCj4"], + [connectorEnum.STRIPE, "pro_5fVcCxU8MFTYozgtf0P8"], +]); export const createPaymentBody = { currency: "USD",