@@ -450,19 +450,19 @@ describe('Datetime', () => {
450450 } } ) ;
451451
452452 // Check hour
453- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . toEqual ( '2' ) ;
453+ expect ( utils . getHours ( component ) ) . toEqual ( '2' ) ;
454454 utils . increaseHour ( component ) ;
455- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . toEqual ( '3' ) ;
455+ expect ( utils . getHours ( component ) ) . toEqual ( '3' ) ;
456456
457457 // Check minute
458- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '02' ) ;
458+ expect ( utils . getMinutes ( component ) ) . toEqual ( '02' ) ;
459459 utils . increaseMinute ( component ) ;
460- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '03' ) ;
460+ expect ( utils . getMinutes ( component ) ) . toEqual ( '03' ) ;
461461
462462 // Check second
463- expect ( component . find ( '.rdtCount' ) . at ( 2 ) . text ( ) ) . toEqual ( '02' ) ;
463+ expect ( utils . getSeconds ( component ) ) . toEqual ( '02' ) ;
464464 utils . increaseSecond ( component ) ;
465- expect ( component . find ( '.rdtCount' ) . at ( 2 ) . text ( ) ) . toEqual ( '03' ) ;
465+ expect ( utils . getSeconds ( component ) ) . toEqual ( '03' ) ;
466466 } ) ;
467467
468468 it ( 'decrease time' , ( ) => {
@@ -482,19 +482,19 @@ describe('Datetime', () => {
482482 } } ) ;
483483
484484 // Check hour
485- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . toEqual ( '2' ) ;
485+ expect ( utils . getHours ( component ) ) . toEqual ( '2' ) ;
486486 utils . decreaseHour ( component ) ;
487- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . toEqual ( '1' ) ;
487+ expect ( utils . getHours ( component ) ) . toEqual ( '1' ) ;
488488
489489 // Check minute
490- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '02' ) ;
490+ expect ( utils . getMinutes ( component ) ) . toEqual ( '02' ) ;
491491 utils . decreaseMinute ( component ) ;
492- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '01' ) ;
492+ expect ( utils . getMinutes ( component ) ) . toEqual ( '01' ) ;
493493
494494 // Check second
495- expect ( component . find ( '.rdtCount' ) . at ( 2 ) . text ( ) ) . toEqual ( '02' ) ;
495+ expect ( utils . getSeconds ( component ) ) . toEqual ( '02' ) ;
496496 utils . decreaseSecond ( component ) ;
497- expect ( component . find ( '.rdtCount' ) . at ( 2 ) . text ( ) ) . toEqual ( '01' ) ;
497+ expect ( utils . getSeconds ( component ) ) . toEqual ( '01' ) ;
498498 } ) ;
499499
500500 it ( 'long increase time' , ( done ) => {
@@ -503,8 +503,8 @@ describe('Datetime', () => {
503503
504504 utils . increaseHour ( component ) ;
505505 setTimeout ( ( ) => {
506- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . not . toEqual ( '2' ) ;
507- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . not . toEqual ( '3' ) ;
506+ expect ( utils . getHours ( component ) ) . not . toEqual ( '2' ) ;
507+ expect ( utils . getHours ( component ) ) . not . toEqual ( '3' ) ;
508508 done ( ) ;
509509 } , 920 ) ;
510510 } ) ;
@@ -515,8 +515,8 @@ describe('Datetime', () => {
515515
516516 utils . decreaseHour ( component ) ;
517517 setTimeout ( ( ) => {
518- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . not . toEqual ( '1' ) ;
519- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . not . toEqual ( '0' ) ;
518+ expect ( utils . getHours ( component ) ) . not . toEqual ( '1' ) ;
519+ expect ( utils . getHours ( component ) ) . not . toEqual ( '0' ) ;
520520 done ( ) ;
521521 } , 920 ) ;
522522 } ) ;
@@ -538,13 +538,13 @@ describe('Datetime', () => {
538538 } ) ;
539539
540540 utils . increaseHour ( component ) ;
541- expect ( component . find ( '.rdtCount' ) . at ( 0 ) . text ( ) ) . toEqual ( '3' ) ;
541+ expect ( utils . getHours ( component ) ) . toEqual ( '3' ) ;
542542
543543 utils . increaseMinute ( component ) ;
544- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '17' ) ;
544+ expect ( utils . getMinutes ( component ) ) . toEqual ( '17' ) ;
545545
546546 utils . increaseSecond ( component ) ;
547- expect ( component . find ( '.rdtCount' ) . at ( 2 ) . text ( ) ) . toEqual ( '03' ) ;
547+ expect ( utils . getSeconds ( component ) ) . toEqual ( '03' ) ;
548548 } ) ;
549549
550550 it ( 'timeConstraints -> decrease time' , ( ) => {
@@ -563,7 +563,7 @@ describe('Datetime', () => {
563563 } ) ;
564564
565565 utils . decreaseMinute ( component ) ;
566- expect ( component . find ( '.rdtCount' ) . at ( 1 ) . text ( ) ) . toEqual ( '47' ) ;
566+ expect ( utils . getMinutes ( component ) ) . toEqual ( '47' ) ;
567567 } ) ;
568568
569569 it ( 'strictParsing=true' , ( done ) => {
0 commit comments