element-web/test/components/structures
Luke Barnard cf41155610 Test TimelinePanel canForwardPaginate (#561)
Fix scroll up, down pagination test

NB: this test may not fail on Travis, although it did fail locally without a fix: #563.

Once the test has scrolled the panel to the top, to the earliest events, it should be able to forward paginate, because some degree of unpagination occurs. This does assume that unpagination will occur when scrolling to the beginning of the events and that unpagination should allow pagination again in the same direction.

Instead of checking that the first event is no longer the first event (varies due to unpagination), check instead that the most recent event can be seen when scrolling all the way down to the bottom of the TimelinePanel.

Scrolling past the bottom of content seems to have strange behaviour, which isn't a useful part of the test. So now the test will scroll down until the last event instead.
2016-11-18 11:44:45 +00:00
..
MessagePanel-test.js Inject MatrixClient into React context in tests 2016-11-14 18:22:56 +00:00
RoomView-test.js Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
ScrollPanel-test.js Fix an issue where the scroll stopped working. 2016-04-05 10:41:32 +01:00
TimelinePanel-test.js Test TimelinePanel canForwardPaginate (#561) 2016-11-18 11:44:45 +00:00