From 317fd06017e913a11d2811fe303e900ddd87feec Mon Sep 17 00:00:00 2001 From: Aiden Montgomery Date: Sat, 10 Jun 2017 10:55:32 +0100 Subject: [PATCH] Adding testIDs to elements --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b59f95bd1c..44c5906c43 100644 --- a/index.js +++ b/index.js @@ -327,7 +327,10 @@ class DatePicker extends Component { minuteInterval, timeZoneOffsetInMinutes, cancelBtnText, - confirmBtnText + confirmBtnText, + testID, + cancelBtnTestID, + confirmBtnTestID } = this.props; const dateInputStyle = [ @@ -341,6 +344,7 @@ class DatePicker extends Component { style={[Style.dateTouch, style]} underlayColor={'transparent'} onPress={this.onPressDate} + testID={testID} > @@ -386,6 +390,7 @@ class DatePicker extends Component { underlayColor={'transparent'} onPress={this.onPressCancel} style={[Style.btnText, Style.btnCancel, customStyles.btnCancel]} + testID={cancelBtnTestID} > {confirmBtnText}