@@ -140,6 +140,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
140140 overlayContainer . getContainerElement ( ) . style . top = '-100px' ;
141141
142142 attachOverlay ( {
143+ usePopover : false ,
143144 positionStrategy : createFlexibleConnectedPositionStrategy ( injector , originElement )
144145 . withFlexibleDimensions ( false )
145146 . withPush ( false )
@@ -2642,7 +2643,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
26422643 attachOverlay ( { positionStrategy} ) ;
26432644
26442645 expect ( overlayRef . hostElement . style . left ) . toBeTruthy ( ) ;
2645- expect ( overlayRef . hostElement . style . right ) . toBeFalsy ( ) ;
2646+ expect ( overlayRef . hostElement . style . right ) . toBe ( 'auto' ) ;
26462647 } ) ;
26472648
26482649 it ( 'should use `right` when positioning an element at the end' , ( ) => {
@@ -2658,7 +2659,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
26582659 attachOverlay ( { positionStrategy} ) ;
26592660
26602661 expect ( overlayRef . hostElement . style . right ) . toBeTruthy ( ) ;
2661- expect ( overlayRef . hostElement . style . left ) . toBeFalsy ( ) ;
2662+ expect ( overlayRef . hostElement . style . left ) . toBe ( 'auto' ) ;
26622663 } ) ;
26632664 } ) ;
26642665
@@ -2679,7 +2680,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
26792680 } ) ;
26802681
26812682 expect ( overlayRef . hostElement . style . right ) . toBeTruthy ( ) ;
2682- expect ( overlayRef . hostElement . style . left ) . toBeFalsy ( ) ;
2683+ expect ( overlayRef . hostElement . style . left ) . toBe ( 'auto' ) ;
26832684 } ) ;
26842685
26852686 it ( 'should use `left` when positioning an element at the end' , ( ) => {
@@ -2695,7 +2696,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
26952696 attachOverlay ( { positionStrategy, direction : 'rtl' } ) ;
26962697
26972698 expect ( overlayRef . hostElement . style . left ) . toBeTruthy ( ) ;
2698- expect ( overlayRef . hostElement . style . right ) . toBeFalsy ( ) ;
2699+ expect ( overlayRef . hostElement . style . right ) . toBe ( 'auto' ) ;
26992700 } ) ;
27002701 } ) ;
27012702
@@ -2713,7 +2714,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
27132714 attachOverlay ( { positionStrategy} ) ;
27142715
27152716 expect ( overlayRef . hostElement . style . top ) . toBeTruthy ( ) ;
2716- expect ( overlayRef . hostElement . style . bottom ) . toBeFalsy ( ) ;
2717+ expect ( overlayRef . hostElement . style . bottom ) . toBe ( 'auto' ) ;
27172718 } ) ;
27182719
27192720 it ( 'should use `bottom` when positioning at element along the bottom' , ( ) => {
@@ -2729,7 +2730,7 @@ describe('FlexibleConnectedPositionStrategy', () => {
27292730 attachOverlay ( { positionStrategy} ) ;
27302731
27312732 expect ( overlayRef . hostElement . style . bottom ) . toBeTruthy ( ) ;
2732- expect ( overlayRef . hostElement . style . top ) . toBeFalsy ( ) ;
2733+ expect ( overlayRef . hostElement . style . top ) . toBe ( 'auto' ) ;
27332734 } ) ;
27342735 } ) ;
27352736 } ) ;
0 commit comments