element-web/test
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
..
components Test TimelinePanel canForwardPaginate (#561) 2016-11-18 11:44:45 +00:00
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
all-tests.js Make it possible to only run one test file each time 2016-04-07 17:49:39 +01:00
mock-clock.js Some basic tests for MessagePanel 2016-03-31 00:48:46 +01:00
skinned-sdk.js Sort alphabetically (and name consistently) 2016-06-17 15:46:31 +01:00
test-utils.js Inject MatrixClient into React context in tests 2016-11-14 18:22:56 +00:00