File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
projects/igniteui-angular/src/lib/services/overlay Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -695,8 +695,10 @@ describe('igxOverlay', () => {
695
695
const componentEl = overlayWrapper . children [ 0 ] . children [ 0 ] ;
696
696
const wrapperRect = overlayWrapper . getBoundingClientRect ( ) ;
697
697
const componentRect = componentEl . getBoundingClientRect ( ) ;
698
- expect ( wrapperRect . width / 2 ) . toEqual ( componentRect . left ) ;
699
- expect ( wrapperRect . height / 2 ) . toEqual ( componentRect . top ) ;
698
+ expect ( componentRect . left ) . toBeLessThan ( 0 ) ;
699
+ expect ( wrapperRect . width / 2 ) . toEqual ( componentRect . left + componentRect . width / 2 ) ;
700
+ expect ( componentRect . top ) . toBeLessThan ( 0 ) ;
701
+ expect ( wrapperRect . height / 2 ) . toEqual ( componentRect . top + componentRect . height / 2 ) ;
700
702
hasScrollbar = document . body . scrollHeight > document . body . clientHeight ;
701
703
expect ( hasScrollbar ) . toBeTruthy ( ) ;
702
704
} ) ;
You can’t perform that action at this time.
0 commit comments