Skip to content

Commit 60a9e47

Browse files
author
Hector Arce De Las Heras
committed
Include data-testid props to ConfirmacionMessage component
1 parent 939bf21 commit 60a9e47

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/confirmationMessage/confirmationMessageStandAlone.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ const ConfirmationMessageStandAloneComponent = (
6161
styles={props.stylesState}
6262
>
6363
{props.title && (
64-
<TitleTextStyled align={alignValue[align.toLocaleLowerCase()]} styles={props.stylesState}>
64+
<TitleTextStyled
65+
align={alignValue[align.toLocaleLowerCase()]}
66+
data-testid={`${props.dataTestId}TitleContainer`}
67+
styles={props.stylesState}
68+
>
6569
{props.decorativeElement?.element && (
6670
<DecorativeElement
6771
{...props.decorativeElement}
72+
dataTestId={`${props.dataTestId}DecorativeElement`}
6873
element={buildPropsDecorativeElement<
6974
ConfirmationMessagePropsStylesType | undefined
7075
>(props.decorativeElement?.element, props.stylesState)}
@@ -83,6 +88,7 @@ const ConfirmationMessageStandAloneComponent = (
8388
)}
8489
<DescriptionTextStyled
8590
align={alignValue[align.toLocaleLowerCase()]}
91+
data-testid={`${props.dataTestId}DescriptionContainer`}
8692
styles={props.stylesState}
8793
>
8894
{buildDescription()}
@@ -99,6 +105,7 @@ const ConfirmationMessageStandAloneComponent = (
99105
{props.content && (
100106
<ContentContainerStyled
101107
align={alignValue[align.toLocaleLowerCase()]}
108+
data-testid={`${props.dataTestId}Content`}
102109
styles={props.stylesState}
103110
>
104111
{props.content}

0 commit comments

Comments
 (0)