element-web/test/components/views/rooms
Andy Balaam 8b7f49e74e
Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903)
* Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk

* Remove unit tests that rely on receipt timestamps

Previously, if we found a receipt for an unknown event, we would use the
receipt timestamp and declare all events before that time to be read.
Now, we ignore such "dangling" receipts until we find the event they
refer to.

This new behaviour is more correct, but does lead to more messages being
considered unread.

This commit deletes tests that checked for the old behaviour.

* Check for a missing thread in determineUnreadState

* Fix incorrect way to find room timeline

* More realistic test setup to support new receipt code

* Update snapshot to expect a room to be unread when there are no receipts

* Formatting fixes

* Update snapshot to show menu and notif button

* Disable some flaky tests

* Disable some flaky tests

* Fix test to make a threaded receipt for an event that is actually in the thread

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2023-11-29 13:36:52 +00:00
..
__snapshots__ Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
EventTile Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
NotificationBadge Show knock rooms in the list (#11573) 2023-09-19 11:24:35 +00:00
RoomHeader Fix: Video Room Chat Header Button Removed (#11911) 2023-11-21 21:28:54 +00:00
wysiwyg_composer Prevent flaky Jest test by pre-loading WASM (#11975) 2023-11-29 10:11:53 +00:00
BasicMessageComposer-test.tsx Escape placeholder before injecting it into the style (#11607) 2023-09-19 05:58:53 +00:00
EditMessageComposer-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00
EventTile-test.tsx Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
ExtraTile-test.tsx Refactor ExtraTile to use functional components (#10191) 2023-02-23 11:57:37 +00:00
LegacyRoomHeader-test.tsx Add menu for legacy and element call in 1:1 rooms (#11910) 2023-11-22 10:35:51 +00:00
MemberList-test.tsx set disabled state on invite to room button in memberlist (#11893) 2023-11-21 01:43:32 +00:00
MemberTile-test.tsx Element-R: Use MatrixClient.CryptoApi.getUserVerificationStatus instead of MatrixClient.checkUserTrust in MemberTile.tsx (#11701) 2023-10-04 13:01:39 +00:00
MessageComposer-test.tsx Switch to importing more things from the main js-sdk export (#11394) 2023-08-14 08:58:55 +00:00
MessageComposerButtons-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
NewRoomIntro-test.tsx Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
PinnedEventTile-test.tsx Apply strictNullChecks to src/components/views/rooms/* (#10875) 2023-05-21 23:53:23 +00:00
PresenceLabel-test.tsx Implement new unreachable state and fix broken string ref (#11748) 2023-11-07 10:14:30 +00:00
ReadReceiptGroup-test.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
RoomHeader-test.tsx Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
RoomKnocksBar-test.tsx Consolidate conjugation i18n strings (#11660) 2023-09-25 12:18:15 +01:00
RoomList-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
RoomListHeader-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
RoomPreviewBar-test.tsx Notify users about denied access on ask-to-join rooms (#11480) 2023-09-07 08:07:43 +00:00
RoomPreviewCard-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
RoomTile-test.tsx Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
SearchBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SearchResultTile-test.tsx Render timeline separator for late event groups (#11739) 2023-10-16 14:14:04 +00:00
SendMessageComposer-test.tsx Allow adding extra icons to the room header (#11799) 2023-11-01 12:03:10 +00:00
ThirdPartyMemberInfo-test.tsx Apply strictNullChecks to src/components/views/rooms/* (#10875) 2023-05-21 23:53:23 +00:00
VoiceRecordComposerTile-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00