File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -582,18 +582,18 @@ describe('MatBottomSheet', () => {
582
582
viewContainerFixture . detectChanges ( ) ;
583
583
flushMicrotasks ( ) ;
584
584
585
- expect ( document . activeElement . id )
585
+ expect ( document . activeElement ! . id )
586
586
. not . toBe ( 'bottom-sheet-trigger' , 'Expected the focus to change when sheet was opened.' ) ;
587
587
588
588
bottomSheetRef . dismiss ( ) ;
589
- expect ( document . activeElement . id ) . not . toBe ( 'bottom-sheet-trigger' ,
589
+ expect ( document . activeElement ! . id ) . not . toBe ( 'bottom-sheet-trigger' ,
590
590
'Expcted the focus not to have changed before the animation finishes.' ) ;
591
591
592
592
flushMicrotasks ( ) ;
593
593
viewContainerFixture . detectChanges ( ) ;
594
594
tick ( 500 ) ;
595
595
596
- expect ( document . activeElement . id ) . not . toBe ( 'bottom-sheet-trigger' ,
596
+ expect ( document . activeElement ! . id ) . not . toBe ( 'bottom-sheet-trigger' ,
597
597
'Expected the trigger not to be refocused on close.' ) ;
598
598
599
599
document . body . removeChild ( button ) ;
You can’t perform that action at this time.
0 commit comments