@@ -228,14 +228,28 @@ function DateTimePicker(props: DateTimePickerPropsInternal) {
228228
229229 const renderHeader = ( ) => {
230230 return (
231- < View row spread bg-$backgroundDefault paddingH-20 style = { [ styles . header , headerStyle ] } >
231+ < View
232+ row
233+ spread
234+ bg-$backgroundDefault
235+ paddingH-20
236+ style = { [ styles . header , headerStyle ] }
237+ testID = { `${ testID } .header` }
238+ >
232239 < Button
233240 link
234241 iconSource = { Assets . icons . x }
235242 iconStyle = { { tintColor : Colors . $iconDefault } }
236243 onPress = { toggleExpandableOverlay }
244+ testID = { `${ testID } .cancel` }
245+ />
246+ < Button
247+ link
248+ iconSource = { Assets . icons . check }
249+ useCustomTheme = { useCustomTheme }
250+ onPress = { onDonePressed }
251+ testID = { `${ testID } .done` }
237252 />
238- < Button link iconSource = { Assets . icons . check } useCustomTheme = { useCustomTheme } onPress = { onDonePressed } />
239253 </ View >
240254 ) ;
241255 } ;
@@ -258,6 +272,7 @@ function DateTimePicker(props: DateTimePickerPropsInternal) {
258272 timeZoneOffsetInMinutes = { timeZoneOffsetInMinutes }
259273 display = { Constants . isIOS ? 'spinner' : undefined }
260274 themeVariant = { themeVariant }
275+ testID = { `${ testID } .picker` }
261276 />
262277 ) ;
263278 } , [
@@ -300,6 +315,7 @@ function DateTimePicker(props: DateTimePickerPropsInternal) {
300315 disabled = { editable === false }
301316 // NOTE: Android picker comes with its own overlay built-in therefor we're not using ExpandableOverlay for it
302317 renderCustomOverlay = { Constants . isAndroid ? renderAndroidDateTimePicker : undefined }
318+ testID = { `${ testID } .overlay` }
303319 >
304320 { renderInput ? (
305321 renderInput ( { ...props , value : getStringValue ( ) } )
0 commit comments