element-web/test/test-utils
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
..
audio.ts Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
beacon.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call.ts Use new matrixRTC calling (#11792) 2023-10-30 15:14:27 +00:00
client.ts Element-R: Add current version of the rust-sdk and vodozemac (#11785) 2023-10-25 15:34:03 +00:00
composer.ts Update tests to prefer RTL over Enzyme (#10247 2023-02-28 08:58:23 +00:00
console.ts Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
date.ts Poll history - read only list of polls in current timeline (#10055) 2023-02-02 21:39:23 +00:00
events.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
index.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
location.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
oidc.ts Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
platform.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
poll.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
pushRules.ts Stabilize support for MSC3952: intentional mentions (#10967) 2023-07-11 22:29:54 +00:00
relations.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
room.ts Allow adding extra icons to the room header (#11799) 2023-11-01 12:03:10 +00:00
test-utils.ts Use new matrixRTC calling (#11792) 2023-10-30 15:14:27 +00:00
threads.ts Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
utilities.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
wrappers.tsx Prefer MatrixClientContext over MatrixClientPeg (#10986) 2023-06-14 13:42:07 +01:00