I'm trying to simulate the scrolling in a element contained in a div, which is the one passed to render
function.
I'm trying with something like this, but it seems that the div is not scrolling as my next expect
is falling.
const content = (
<div style={{display: 'flex'}}>
<LazyList itemRenderer={itemRenderer} items={items} minItemHeight={MIN_ITEM_HEIGHT} />
</div>
);
mockOffsetSize(WIDTH, HEIGHT);
const {debug, container, queryByText} = render(content);
const scrollContainer = container.querySelector('.ReactVirtualized__Grid');
debug(scrollContainer);
fireEvent.scroll(scrollContainer, {y: 100});
debug(scrollContainer);
Is this the correct way of firing the scroll event? Any other alternatives?