@@ -228,7 +228,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
228228 } ;
229229
230230 renderHeader ( ) {
231- const { doneButtonColor, accessibilityLabels} = this . props ;
231+ const { doneButtonColor, accessibilityLabels, testID } = this . props ;
232232 const { valid} = this . state ;
233233
234234 return (
@@ -239,6 +239,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
239239 iconStyle = { { tintColor : Colors . $iconDefault } }
240240 onPress = { this . onDismiss }
241241 accessibilityLabel = { _ . get ( accessibilityLabels , 'dismissButton' ) }
242+ testID = { `${ testID } .dialog.cancel` }
242243 />
243244 < Button
244245 color = { doneButtonColor }
@@ -247,6 +248,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
247248 iconSource = { Assets . icons . check }
248249 onPress = { this . onDonePressed }
249250 accessibilityLabel = { _ . get ( accessibilityLabels , 'doneButton' ) }
251+ testID = { `${ testID } .dialog.done` }
250252 />
251253 </ View >
252254 ) ;
@@ -272,7 +274,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
272274 }
273275
274276 renderPreview ( ) {
275- const { accessibilityLabels, previewInputStyle} = this . props ;
277+ const { accessibilityLabels, previewInputStyle, testID } = this . props ;
276278 const { color, text} = this . state ;
277279 const hex = this . getHexString ( color ) ;
278280 const textColor = this . getTextColor ( hex ) ;
@@ -322,6 +324,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
322324 enablesReturnKeyAutomatically
323325 onFocus = { this . onFocus }
324326 accessibilityLabel = { accessibilityLabels ?. input }
327+ testID = { `${ testID } .dialog.textInput` }
325328 />
326329 </ View >
327330 < View style = { [ { backgroundColor : textColor } , styles . underline ] } />
0 commit comments