From 70f975c390ca3dd1bfc31562089306bb920b2ab1 Mon Sep 17 00:00:00 2001 From: wklos-iohk Date: Mon, 12 May 2025 15:41:06 +0200 Subject: [PATCH] feat: add test ids for flow card profile component --- .../flow-card/flow-card-profile.component.tsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/design-system/flow-card/flow-card-profile.component.tsx b/src/design-system/flow-card/flow-card-profile.component.tsx index af8f922..d27fdba 100644 --- a/src/design-system/flow-card/flow-card-profile.component.tsx +++ b/src/design-system/flow-card/flow-card-profile.component.tsx @@ -14,6 +14,7 @@ interface Props { icon?: ReactNode; name: string; description?: string; + testId?: string; } export const Profile = ({ @@ -21,6 +22,7 @@ export const Profile = ({ icon, name, description, + testId, }: Readonly): JSX.Element => { const renderProfileImage = () => { if (typeof icon !== 'undefined') { @@ -34,18 +36,33 @@ export const Profile = ({
- + {renderProfileImage()} - + {name} {description === undefined ? undefined : ( - + {description}