@@ -228,7 +228,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
228
228
} ;
229
229
230
230
renderHeader ( ) {
231
- const { doneButtonColor, accessibilityLabels} = this . props ;
231
+ const { doneButtonColor, accessibilityLabels, testID } = this . props ;
232
232
const { valid} = this . state ;
233
233
234
234
return (
@@ -239,6 +239,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
239
239
iconStyle = { { tintColor : Colors . $iconDefault } }
240
240
onPress = { this . onDismiss }
241
241
accessibilityLabel = { _ . get ( accessibilityLabels , 'dismissButton' ) }
242
+ testID = { `${ testID } .dialog.cancel` }
242
243
/>
243
244
< Button
244
245
color = { doneButtonColor }
@@ -247,6 +248,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
247
248
iconSource = { Assets . icons . check }
248
249
onPress = { this . onDonePressed }
249
250
accessibilityLabel = { _ . get ( accessibilityLabels , 'doneButton' ) }
251
+ testID = { `${ testID } .dialog.done` }
250
252
/>
251
253
</ View >
252
254
) ;
@@ -272,7 +274,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
272
274
}
273
275
274
276
renderPreview ( ) {
275
- const { accessibilityLabels, previewInputStyle} = this . props ;
277
+ const { accessibilityLabels, previewInputStyle, testID } = this . props ;
276
278
const { color, text} = this . state ;
277
279
const hex = this . getHexString ( color ) ;
278
280
const textColor = this . getTextColor ( hex ) ;
@@ -322,6 +324,7 @@ class ColorPickerDialog extends PureComponent<Props, State> {
322
324
enablesReturnKeyAutomatically
323
325
onFocus = { this . onFocus }
324
326
accessibilityLabel = { accessibilityLabels ?. input }
327
+ testID = { `${ testID } .dialog.textInput` }
325
328
/>
326
329
</ View >
327
330
< View style = { [ { backgroundColor : textColor } , styles . underline ] } />
0 commit comments