Skip to content

Commit cf652d5

Browse files
committed
fixup! test: add missing testIDs for maestro selectors
1 parent aefe0fc commit cf652d5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/themed/SafeSlider.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ interface Props {
2626
width?: number
2727
confirmText?: string
2828
disabledText?: string
29+
testID?: string
2930

3031
onSlidingComplete: (reset: () => void) => Promise<void> | void
3132
}
@@ -36,7 +37,8 @@ export const SafeSlider: React.FC<Props> = props => {
3637
disabledText,
3738
disabled = false,
3839
onSlidingComplete,
39-
parentStyle
40+
parentStyle,
41+
testID = 'confirmSliderThumb'
4042
} = props
4143

4244
const theme = useTheme()
@@ -120,7 +122,7 @@ export const SafeSlider: React.FC<Props> = props => {
120122

121123
<GestureDetector gesture={gesture}>
122124
<Animated.View
123-
testID="confirmSliderThumb"
125+
testID={testID}
124126
style={[
125127
styles.thumb,
126128
sliderDisabled ? styles.disabledThumb : null,

0 commit comments

Comments
 (0)