Skip to content

Commit 63f1845

Browse files
authored
hint testID's (#936)
1 parent 4d7e7c3 commit 63f1845

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

demo/src/screens/componentScreens/HintsScreen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default class HintsScreen extends Component {
8282
label={showHint ? 'Hide' : 'Show'}
8383
onPress={() => this.setState({showHint: !showHint})}
8484
style={{alignSelf: targetPosition}}
85+
testID={'Hint.button'}
8586
// style={{alignSelf: targetPosition, marginLeft: 30}}
8687
// style={{alignSelf: targetPosition, position: 'absolute', top: 160, left: 100}}
8788
/>

src/components/hint/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ class Hint extends BaseComponent {
362362
>
363363
{this.renderHintTip()}
364364
<View
365+
testID={`${testID}.message`}
365366
row
366367
centerV
367368
style={[styles.hint, color && {backgroundColor: color}, !_.isUndefined(borderRadius) && {borderRadius}]}

0 commit comments

Comments
 (0)