mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Do not assume unpagination will occur during scroll test
This commit is contained in:
parent
42fc7b1b66
commit
8a6ed1d7e9
1 changed files with 3 additions and 2 deletions
|
@ -341,8 +341,9 @@ describe('TimelinePanel', function() {
|
||||||
var events = scryEventTiles(panel);
|
var events = scryEventTiles(panel);
|
||||||
expect(events[0].props.mxEvent).toBe(timeline.getEvents()[0]);
|
expect(events[0].props.mxEvent).toBe(timeline.getEvents()[0]);
|
||||||
|
|
||||||
// Expect to be able to paginate forwards, having unpaginated a few events
|
// At this point, we make no assumption that unpagination has happened. This doesn't
|
||||||
expect(panel.state.canForwardPaginate).toBe(true);
|
// 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
|
// scroll all the way to the bottom
|
||||||
return scrollDown();
|
return scrollDown();
|
||||||
|
|
Loading…
Reference in a new issue