Skip to content

Commit

Permalink
feat: Add test attrs in variables form (#501) (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmevladik authored Nov 26, 2024
1 parent 316ffeb commit 367853d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/pages/stage-details/components/Variables/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export const Variables = ({ configMap }: { configMap: ConfigMapKubeObjectInterfa
/>
</Box>
<Box sx={{ pt: (t) => t.typography.pxToRem(FORM_CONTROL_LABEL_HEIGHT) }}>
<IconButton onClick={() => handleDelete(index)} size="medium">
<IconButton
onClick={() => handleDelete(index)}
size="medium"
data-test="delete"
>
<Icon icon={ICONS.BUCKET} width="20" />
</IconButton>
</Box>
Expand All @@ -123,7 +127,12 @@ export const Variables = ({ configMap }: { configMap: ConfigMapKubeObjectInterfa
style={{ minWidth: 0 }}
onClick={appendNewRow}
>
<Icon icon={ICONS.PLUS} width={20} color={theme.palette.secondary.dark} />
<Icon
icon={ICONS.PLUS}
width={20}
color={theme.palette.secondary.dark}
data-test="add"
/>
</Button>
</Stack>
<Stack
Expand Down

0 comments on commit 367853d

Please sign in to comment.