+
{
userScrolledToElementSpy().should('have.been.calledWith', 'item-5');
userScrolledToElementSpy().should('not.have.been.calledWith', 'item-6');
/* By just scrolling 1 px down, as we require the 100% of the element to intersect to be
- considered visible, the 5th element does no longer meet this condition. Therefore the 6th
+ considered visible, the 5th element does no longer meet this condition. Therefore, the 6th
element is considered the first one. */
scrollBy(1);
userScrolledToElementSpy().should('have.been.calledWith', 'item-6');