You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix last remaining broken test
This commit is contained in:
@ -436,8 +436,8 @@ describe('MessagePanel', function() {
|
|||||||
const rm = res.find('.mx_RoomView_myReadMarker_container').getDOMNode();
|
const rm = res.find('.mx_RoomView_myReadMarker_container').getDOMNode();
|
||||||
|
|
||||||
const rows = res.find('.mx_RoomView_MessageList').children();
|
const rows = res.find('.mx_RoomView_MessageList').children();
|
||||||
expect(rows.length).toEqual(6);
|
expect(rows.length).toEqual(7); // 6 events + the NewRoomIntro
|
||||||
expect(rm.previousSibling).toEqual(rows.at(4).getDOMNode());
|
expect(rm.previousSibling).toEqual(rows.at(5).getDOMNode());
|
||||||
|
|
||||||
// read marker should be hidden given props and at the last event
|
// read marker should be hidden given props and at the last event
|
||||||
expect(isReadMarkerVisible(rm)).toBeFalsy();
|
expect(isReadMarkerVisible(rm)).toBeFalsy();
|
||||||
|
Reference in New Issue
Block a user