@@ -5,15 +5,15 @@ import SingleDate from "../../../components/layouts/SingleDate";
55import func from "@/util/func"
66import DropdownSearch from '../../../components/shared/DropdownSearch' ;
77
8- const RunTestConfiguration = ( { testRun, setTestRun, runTypeOptions, hourlyTimes, testRunTimeOptions, testRolesArr, maxConcurrentRequestsOptions, slackIntegrated, generateLabelForSlackIntegration, getLabel, timeFieldsDisabled, teamsTestingWebhookIntegrated, generateLabelForTeamsIntegration, jiraProjectMap} ) => {
8+ const RunTestConfiguration = ( { testRun, setTestRun, runTypeOptions, hourlyTimes, testRunTimeOptions, testRolesArr, maxConcurrentRequestsOptions, slackIntegrated, generateLabelForSlackIntegration, getLabel, timeFieldsDisabled, teamsTestingWebhookIntegrated, generateLabelForTeamsIntegration, , isHybridTestingEnabled , miniTestingServiceNames , jiraProjectMap} ) => {
99 const reducer = ( state , action ) => {
1010 switch ( action . type ) {
1111 case "update" :
1212 let scheduledEpoch = new Date ( action . obj [ 'selectedDate' ] ) . getTime ( ) / 1000 ;
1313 let hourlyLabel = testRun . hourlyLabel ;
1414 if ( hourlyLabel !== "Now" ) {
1515 const val = hourlyTimes . filter ( ( item ) => item . label === hourlyLabel ) [ 0 ] . value ;
16- scheduledEpoch += parseInt ( val ) * 60 * 60 ;
16+ scheduledEpoch += parseInt ( val ) * 60 * 60 ;
1717 }
1818 const timeNow = new Date ( ) . getTime ( ) / 1000 ;
1919 if ( Math . abs ( timeNow - scheduledEpoch ) < 86400 ) {
@@ -43,7 +43,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
4343 value : ele . issueType
4444 } ) )
4545 : [ ] ;
46-
46+
4747 const severitiesArr = func . getAktoSeverities ( )
4848 const allSeverity = severitiesArr . map ( ( x ) => { return { value : x , label : func . toSentenceCase ( x ) , id : func . toSentenceCase ( x ) } } )
4949
@@ -54,9 +54,9 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
5454 jiraProjectMap [ firstProject ] ?. [ 0 ] ?. issueType
5555 ? jiraProjectMap [ firstProject ] [ 0 ] . issueType
5656 : "" ;
57-
57+
5858 const checkPrevToggle = ! testRun ?. autoTicketingDetails ?. shouldCreateTickets ;
59-
59+
6060 if ( checkPrevToggle ) {
6161 setTestRun ( ( prev ) => ( {
6262 ...prev ,
@@ -104,7 +104,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
104104 recurringWeekly = true ;
105105 } else if ( runType === 'Monthly' ) {
106106 recurringMonthly = true ;
107- }
107+ }
108108 setTestRun ( prev => ( {
109109 ...prev ,
110110 recurringDaily,
@@ -115,7 +115,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
115115 } ) ) ;
116116 } } />
117117 < div style = { { width : "100%" } } >
118- < SingleDate
118+ < SingleDate
119119 dispatch = { dispatch }
120120 data = { state . data }
121121 dataKey = "selectedDate"
@@ -204,6 +204,21 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
204204 } ) ) ;
205205 } } />
206206 </ HorizontalGrid >
207+ {
208+ isHybridTestingEnabled && miniTestingServiceNames ?. length > 0 ?
209+ < Dropdown
210+ label = "Select Testing Module"
211+ menuItems = { miniTestingServiceNames }
212+ initial = { miniTestingServiceNames ?. [ 0 ] ?. value }
213+ selected = { ( requests ) => {
214+ const miniTestingServiceNameOption = getLabel ( miniTestingServiceNames , requests )
215+ setTestRun ( prev => ( {
216+ ...prev ,
217+ miniTestingServiceName : miniTestingServiceNameOption . value
218+ } ) )
219+ } }
220+ /> : < > </ >
221+ }
207222 < Checkbox
208223 label = { slackIntegrated ? "Send slack alert post test completion" : generateLabelForSlackIntegration ( ) }
209224 checked = { testRun . sendSlackAlert }
@@ -241,7 +256,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
241256 placeHolder = { "Select Issue Type" }
242257 initial = { testRun . autoTicketingDetails . issueType }
243258 />
244- < DropdownSearch
259+ < DropdownSearch
245260 optionsList = { allSeverity }
246261 placeholder = { "Select Severity" }
247262 setSelected = { ( val ) => { setTestRun ( prev => ( { ...prev , autoTicketingDetails : { ...prev . autoTicketingDetails , severities : val } } ) ) } }
0 commit comments