@@ -4,6 +4,7 @@ import Dropdown from "../../../components/layouts/Dropdown";
4
4
import SingleDate from "../../../components/layouts/SingleDate" ;
5
5
import func from "@/util/func"
6
6
7
+ const RunTestConfiguration = ( { testRun, setTestRun, runTypeOptions, hourlyTimes, testRunTimeOptions, testRolesArr, maxConcurrentRequestsOptions, slackIntegrated, generateLabelForSlackIntegration, getLabel, timeFieldsDisabled, teamsTestingWebhookIntegrated, generateLabelForTeamsIntegration, isHybridTestingEnabled, miniTestingServiceNames} ) => {
7
8
const RunTestConfiguration = ( { testRun, setTestRun, runTypeOptions, hourlyTimes, testRunTimeOptions, testRolesArr, maxConcurrentRequestsOptions, slackIntegrated, generateLabelForSlackIntegration, getLabel, timeFieldsDisabled, teamsTestingWebhookIntegrated, generateLabelForTeamsIntegration} ) => {
8
9
const reducer = ( state , action ) => {
9
10
switch ( action . type ) {
@@ -12,7 +13,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
12
13
let hourlyLabel = testRun . hourlyLabel ;
13
14
if ( hourlyLabel !== "Now" ) {
14
15
const val = hourlyTimes . filter ( ( item ) => item . label === hourlyLabel ) [ 0 ] . value ;
15
- scheduledEpoch += parseInt ( val ) * 60 * 60 ;
16
+ scheduledEpoch += parseInt ( val ) * 60 * 60 ;
16
17
}
17
18
const timeNow = new Date ( ) . getTime ( ) / 1000 ;
18
19
if ( Math . abs ( timeNow - scheduledEpoch ) < 86400 ) {
@@ -52,7 +53,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
52
53
recurringWeekly = true ;
53
54
} else if ( runType === 'Monthly' ) {
54
55
recurringMonthly = true ;
55
- }
56
+ }
56
57
setTestRun ( prev => ( {
57
58
...prev ,
58
59
recurringDaily,
@@ -63,7 +64,7 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
63
64
} ) ) ;
64
65
} } />
65
66
< div style = { { width : "100%" } } >
66
- < SingleDate
67
+ < SingleDate
67
68
dispatch = { dispatch }
68
69
data = { state . data }
69
70
dataKey = "selectedDate"
@@ -152,6 +153,21 @@ const RunTestConfiguration = ({ testRun, setTestRun, runTypeOptions, hourlyTimes
152
153
} ) ) ;
153
154
} } />
154
155
</ HorizontalGrid >
156
+ {
157
+ isHybridTestingEnabled && miniTestingServiceNames ?. length > 0 ?
158
+ < Dropdown
159
+ label = "Select Testing Module"
160
+ menuItems = { miniTestingServiceNames }
161
+ initial = { miniTestingServiceNames ?. [ 0 ] ?. value }
162
+ selected = { ( requests ) => {
163
+ const miniTestingServiceNameOption = getLabel ( miniTestingServiceNames , requests )
164
+ setTestRun ( prev => ( {
165
+ ...prev ,
166
+ miniTestingServiceName : miniTestingServiceNameOption . value
167
+ } ) )
168
+ } }
169
+ /> : < > </ >
170
+ }
155
171
< Checkbox
156
172
label = { slackIntegrated ? "Send slack alert post test completion" : generateLabelForSlackIntegration ( ) }
157
173
checked = { testRun . sendSlackAlert }
0 commit comments