Skip to content

Commit d98a827

Browse files
committed
Add data-testid attributes
1 parent 6d88a0b commit d98a827

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Dialog/Dialog.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,20 @@ const DialogContent = ({
151151
>
152152
{showOverlay && <DialogOverlay />}
153153
<ContentArea
154+
data-testid="click-dialog-contentarea"
154155
$reducePadding={reducePadding}
155156
{...props}
156157
>
157158
{(title || showClose) && (
158159
<>
159160
<TitleArea $onlyClose={!!showClose && !title}>
160-
{title && <Title>{title}</Title>}
161-
{showClose && <CloseButton onClose={onClose} />}
161+
{title && <Title data-testid="click-dialog-title">{title}</Title>}
162+
{showClose && (
163+
<CloseButton
164+
data-testid="click-dialog-close"
165+
onClose={onClose}
166+
/>
167+
)}
162168
</TitleArea>
163169
<Spacer size="sm" />
164170
</>

0 commit comments

Comments
 (0)