File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
redisinsight/ui/src/pages/settings/components/general-settings/datetime-formatter Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ const DateTimeFormatter = () => {
170
170
</ div >
171
171
< EuiSuperSelect
172
172
className = { styles . datetimeInput }
173
- options = { dateTimeOptions }
173
+ options = { dateTimeOptions
174
+ . map ( ( option ) => ( { ...option , 'data-test-subj' : `date-option-${ option . value } ` } ) ) }
174
175
valueOfSelected = { formik . values . commonFormat }
175
176
onChange = { ( option ) => onCommonFormatChange ( option ) }
176
177
disabled = { formik . values . selectedRadioOption !== DatetimeRadioOption . Common }
@@ -247,7 +248,8 @@ const DateTimeFormatter = () => {
247
248
< div >
248
249
< EuiSuperSelect
249
250
className = { styles . datetimeInput }
250
- options = { timezoneOptions }
251
+ options = { timezoneOptions
252
+ . map ( ( option ) => ( { ...option , 'data-test-subj' : `zone-option-${ option . value } ` } ) ) }
251
253
valueOfSelected = { formik . values . timezone }
252
254
onChange = { ( option ) => onTimezoneChange ( option ) }
253
255
data-test-subj = "select-timezone"
@@ -257,7 +259,7 @@ const DateTimeFormatter = () => {
257
259
< EuiFlexItem grow = { 2 } >
258
260
< div className = { styles . previewContainer } >
259
261
< EuiText className = { styles . dateTimeSubtitle } color = "subdued" > Preview:</ EuiText >
260
- < EuiText className = { styles . preview } > { preview } </ EuiText >
262
+ < EuiText className = { styles . preview } data-testid = "data-preview" > { preview } </ EuiText >
261
263
</ div >
262
264
</ EuiFlexItem >
263
265
</ EuiFlexGroup >
You can’t perform that action at this time.
0 commit comments