Skip to content

Commit cdd0110

Browse files
committed
test: add missing testIDs for maestro selectors
1 parent 10b5adb commit cdd0110

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

src/__tests__/modals/__snapshots__/AccelerateTxModal.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ exports[`AccelerateTxModalComponent should render with loading props 1`] = `
619619
},
620620
]
621621
}
622+
testID="confirmSliderThumb"
622623
>
623624
<Text
624625
adjustsFontSizeToFit={true}

src/__tests__/scenes/__snapshots__/SendScene2.ui.test.tsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,7 @@ exports[`SendScene2 1 spendTarget 1`] = `
17051705
},
17061706
]
17071707
}
1708+
testID="confirmSliderThumb"
17081709
>
17091710
<Text
17101711
adjustsFontSizeToFit={true}
@@ -3714,6 +3715,7 @@ exports[`SendScene2 1 spendTarget with info tiles 1`] = `
37143715
},
37153716
]
37163717
}
3718+
testID="confirmSliderThumb"
37173719
>
37183720
<Text
37193721
adjustsFontSizeToFit={true}
@@ -5723,6 +5725,7 @@ exports[`SendScene2 2 spendTargets 1`] = `
57235725
},
57245726
]
57255727
}
5728+
testID="confirmSliderThumb"
57265729
>
57275730
<Text
57285731
adjustsFontSizeToFit={true}
@@ -7313,6 +7316,7 @@ exports[`SendScene2 2 spendTargets hide tiles 1`] = `
73137316
},
73147317
]
73157318
}
7319+
testID="confirmSliderThumb"
73167320
>
73177321
<Text
73187322
adjustsFontSizeToFit={true}
@@ -8883,6 +8887,7 @@ exports[`SendScene2 2 spendTargets hide tiles 2`] = `
88838887
},
88848888
]
88858889
}
8890+
testID="confirmSliderThumb"
88868891
>
88878892
<Text
88888893
adjustsFontSizeToFit={true}
@@ -10220,6 +10225,7 @@ exports[`SendScene2 2 spendTargets hide tiles 3`] = `
1022010225
},
1022110226
]
1022210227
}
10228+
testID="confirmSliderThumb"
1022310229
>
1022410230
<Text
1022510231
adjustsFontSizeToFit={true}
@@ -11970,6 +11976,7 @@ exports[`SendScene2 2 spendTargets lock tiles 1`] = `
1197011976
},
1197111977
]
1197211978
}
11979+
testID="confirmSliderThumb"
1197311980
>
1197411981
<Text
1197511982
adjustsFontSizeToFit={true}
@@ -13671,6 +13678,7 @@ exports[`SendScene2 2 spendTargets lock tiles 2`] = `
1367113678
},
1367213679
]
1367313680
}
13681+
testID="confirmSliderThumb"
1367413682
>
1367513683
<Text
1367613684
adjustsFontSizeToFit={true}
@@ -15299,6 +15307,7 @@ exports[`SendScene2 2 spendTargets lock tiles 3`] = `
1529915307
},
1530015308
]
1530115309
}
15310+
testID="confirmSliderThumb"
1530215311
>
1530315312
<Text
1530415313
adjustsFontSizeToFit={true}

src/__tests__/scenes/__snapshots__/SwapConfirmationScene.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,7 @@ exports[`SwapConfirmationScene should render with loading props 1`] = `
20332033
},
20342034
]
20352035
}
2036+
testID="confirmSliderThumb"
20362037
>
20372038
<Text
20382039
adjustsFontSizeToFit={true}

src/components/themed/SafeSlider.tsx

Lines changed: 4 additions & 1 deletion
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,6 +122,7 @@ export const SafeSlider: React.FC<Props> = props => {
120122

121123
<GestureDetector gesture={gesture}>
122124
<Animated.View
125+
testID={testID}
123126
style={[
124127
styles.thumb,
125128
sliderDisabled ? styles.disabledThumb : null,

0 commit comments

Comments
 (0)