@@ -240,12 +240,11 @@ describe('IgxGrid - Row Drag Tests', () => {
240240 grid . rowSelectable = true ;
241241 grid . rowDraggable = true ;
242242 fixture . detectChanges ( ) ;
243- rowSelectElement = fixture . debugElement . query ( By . css ( CSS_CLASS_SELECTION_CHECKBOX ) ) ;
244- dragIndicatorElement = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_DRAG_INDICATOR ) ) ;
245243 horizontalScrollbarElement = fixture . debugElement . query ( By . css ( CSS_CLASS_VIRTUAL_HSCROLLBAR ) ) ;
246- const rowSelectRect = rowSelectElement . nativeElement . getBoundingClientRect ( ) ;
247244 horizontalScrollbarRect = horizontalScrollbarElement . nativeElement . getBoundingClientRect ( ) ;
248- expect ( rowSelectRect . right ) . toBe ( horizontalScrollbarRect . left ) ;
245+
246+ // The horizontal scrollbar should not be visible
247+ expect ( horizontalScrollbarRect . left ) . toBe ( 0 ) ;
249248 } ) ) ;
250249 it ( 'should align horizontal scrollbar with first non-pinned column when column pinning is enabled' , fakeAsync ( ( ) => {
251250 grid . pinColumn ( 'ProductName' ) ;
@@ -257,7 +256,9 @@ describe('IgxGrid - Row Drag Tests', () => {
257256 let horizontalScrollbarRect = horizontalScrollbarElement . nativeElement . getBoundingClientRect ( ) ;
258257 let pinnedColumnHeaderElement : DebugElement = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_LAST_PINNED_HEADER ) ) ;
259258 let pinnedColumnHeaderRect = pinnedColumnHeaderElement . nativeElement . getBoundingClientRect ( ) ;
260- expect ( pinnedColumnHeaderRect . right ) . toBe ( horizontalScrollbarRect . left ) ;
259+
260+ // The horizontal scrollbar should not be visible
261+ expect ( horizontalScrollbarRect . left ) . toBe ( 0 ) ;
261262
262263 // selectable rows enabled
263264 grid . rowSelectable = true ;
0 commit comments