From 4997676f5d472462b0ddbabafb7aafb1044ea7e3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 5 Nov 2020 16:57:51 +0000 Subject: [PATCH] fix last remaining broken test --- test/components/structures/MessagePanel-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/components/structures/MessagePanel-test.js b/test/components/structures/MessagePanel-test.js index 0cb7e2cc71..f40f8c5187 100644 --- a/test/components/structures/MessagePanel-test.js +++ b/test/components/structures/MessagePanel-test.js @@ -436,8 +436,8 @@ describe('MessagePanel', function() { const rm = res.find('.mx_RoomView_myReadMarker_container').getDOMNode(); const rows = res.find('.mx_RoomView_MessageList').children(); - expect(rows.length).toEqual(6); - expect(rm.previousSibling).toEqual(rows.at(4).getDOMNode()); + expect(rows.length).toEqual(7); // 6 events + the NewRoomIntro + expect(rm.previousSibling).toEqual(rows.at(5).getDOMNode()); // read marker should be hidden given props and at the last event expect(isReadMarkerVisible(rm)).toBeFalsy();