Commit 81c2144 1 parent 3f02a11 commit 81c2144 Copy full SHA for 81c2144
File tree 2 files changed +4
-6
lines changed
src/applications/stdcm/components/StdcmForm
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ type StdcmOpScheduleProps = {
37
37
38
38
const defaultDate = ( date ?: Date ) => {
39
39
const newDate = date ? new Date ( date ) : new Date ( ) ;
40
- newDate . setHours ( 0 ) ;
41
- newDate . setMinutes ( 0 ) ;
42
- newDate . setSeconds ( 0 ) ;
40
+ newDate . setHours ( 0 , 0 , 0 ) ;
43
41
return newDate ;
44
42
} ;
45
43
@@ -67,7 +65,7 @@ const StdcmOpSchedule = ({
67
65
opTimingData && isArrivalDateValid
68
66
? new Date ( opTimingData . arrivalDate )
69
67
: defaultDate ( searchDatetimeWindow ?. begin ) ,
70
- arrivalTime : opTimingData ?. arrivalTime || '--:--' ,
68
+ arrivalTime : opTimingData ?. arrivalTime ,
71
69
arrivalTimeHours : opTimingData ?. arrivalTimehours ,
72
70
arrivalTimeMinutes : opTimingData ?. arrivalTimeMinutes ,
73
71
arrivalToleranceValues : {
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ class STDCMPage {
315
315
await expect ( this . dynamicOriginCh ) . toHaveValue ( 'BV' ) ;
316
316
await expect ( this . originArrival ) . toHaveValue ( 'preciseTime' ) ;
317
317
await expect ( this . dateOriginArrival ) . toHaveValue ( '17/10/24' ) ;
318
- await expect ( this . timeOriginArrival ) . toHaveValue ( '' ) ;
318
+ await expect ( this . timeOriginArrival ) . toHaveValue ( '00:00 ' ) ;
319
319
await expect ( this . toleranceOriginArrival ) . toHaveValue ( '-30/+30' ) ;
320
320
await this . dynamicOriginCh . selectOption ( 'BC' ) ;
321
321
await this . originArrival . selectOption ( 'asSoonAsPossible' ) ;
@@ -340,7 +340,7 @@ class STDCMPage {
340
340
await expect ( this . toleranceDestinationArrival ) . not . toBeVisible ( ) ;
341
341
await this . destinationArrival . selectOption ( 'preciseTime' ) ;
342
342
await expect ( this . dateDestinationArrival ) . toHaveValue ( '17/10/24' ) ;
343
- await expect ( this . timeDestinationArrival ) . toHaveValue ( '' ) ;
343
+ await expect ( this . timeDestinationArrival ) . toHaveValue ( '00:00 ' ) ;
344
344
await expect ( this . toleranceDestinationArrival ) . toHaveValue ( '-30/+30' ) ;
345
345
await this . dateDestinationArrival . fill ( '18/10/24' ) ;
346
346
await this . timeDestinationArrival . click ( ) ;
You can’t perform that action at this time.
0 commit comments