From 8a6ed1d7e9ff158bf3e8ed720cfebb4176e03220 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 22 Nov 2016 17:43:45 +0000 Subject: [PATCH] Do not assume unpagination will occur during scroll test --- test/components/structures/TimelinePanel-test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/components/structures/TimelinePanel-test.js b/test/components/structures/TimelinePanel-test.js index 52b9185f18..b2cdfbd590 100644 --- a/test/components/structures/TimelinePanel-test.js +++ b/test/components/structures/TimelinePanel-test.js @@ -341,8 +341,9 @@ describe('TimelinePanel', function() { var events = scryEventTiles(panel); expect(events[0].props.mxEvent).toBe(timeline.getEvents()[0]); - // Expect to be able to paginate forwards, having unpaginated a few events - expect(panel.state.canForwardPaginate).toBe(true); + // At this point, we make no assumption that unpagination has happened. This doesn't + // mean that we shouldn't be able to scroll all the way down to the bottom to see the + // most recent event in the timeline. // scroll all the way to the bottom return scrollDown();