From dbe43bcb7a9f844369530e76bae1af7ead218df1 Mon Sep 17 00:00:00 2001 From: Anil kumar M <106086523+Anil-kumar-Majji@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:31:35 +0530 Subject: [PATCH] feat(INJI-340): add testID for VC Detailes (#809) * fix(INJI-340): Added testIDs for the VC Detailes * Added testIDProps, testId's in TextItem component & for labels in VcDetailes. * Changes the testID's to titles & values Signed-off-by: Tilak Puli --- components/QrCodeOverlay.tsx | 8 ++++++-- components/VcDetails.tsx | 34 +++++++++++++++++++++++++++++++++- components/ui/TextItem.tsx | 3 +++ 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/components/QrCodeOverlay.tsx b/components/QrCodeOverlay.tsx index 7037586d0..5ca477e0a 100644 --- a/components/QrCodeOverlay.tsx +++ b/components/QrCodeOverlay.tsx @@ -36,7 +36,11 @@ export const QrCodeOverlay: React.FC = (props) => { overlayStyle={{ padding: 1, borderRadius: 21 }}> - + {t('qrCodeHeader')} = (props) => { size={32} /> - + = (props) => { {t('fullName')} @@ -68,12 +70,14 @@ export const VcDetails: React.FC = (props) => { {t('idType')} @@ -83,12 +87,14 @@ export const VcDetails: React.FC = (props) => { {uin ? ( {t('uin')} @@ -100,12 +106,14 @@ export const VcDetails: React.FC = (props) => { {vid ? ( {t('vid')} @@ -115,12 +123,14 @@ export const VcDetails: React.FC = (props) => { ) : null} {t('dateOfBirth')} @@ -136,12 +146,14 @@ export const VcDetails: React.FC = (props) => { {t('gender')} @@ -152,12 +164,14 @@ export const VcDetails: React.FC = (props) => { {t('generatedOn')} @@ -166,6 +180,7 @@ export const VcDetails: React.FC = (props) => { @@ -173,6 +188,7 @@ export const VcDetails: React.FC = (props) => { @@ -183,12 +199,14 @@ export const VcDetails: React.FC = (props) => { {t('phoneNumber')} @@ -205,6 +223,7 @@ export const VcDetails: React.FC = (props) => { @@ -212,6 +231,7 @@ export const VcDetails: React.FC = (props) => { 25 @@ -230,6 +250,7 @@ export const VcDetails: React.FC = (props) => { @@ -237,6 +258,7 @@ export const VcDetails: React.FC = (props) => { = (props) => { {CREDENTIAL_REGISTRY_EDIT === 'true' && ( {t('credentialRegistry')} @@ -268,13 +292,17 @@ export const VcDetails: React.FC = (props) => { {props.vc?.reason?.length > 0 && ( - + {t('reasonForSharing')} )} {props.vc?.reason?.map((reason, index) => ( = (props) => { type="material-community" /> = (props) => { = (props) => {