element-web/cypress/e2e
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-player Disable some IRC audio player tests because they are flaky (#11456) 2023-08-23 10:00:50 +00:00
composer Disable a bunch of flaky cypress tests (#11719) 2023-10-05 15:30:49 +01:00
crypto Re-enable Cypress test creating a DM on Rust (#11946) 2023-11-28 11:37:32 +00:00
editing Migrate most of editing.spec.ts from Cypress to Playwright (#11947) 2023-11-28 13:52:09 +00:00
integration-manager Update read_events.spec.ts - use Cypress Testing Library (#10719) 2023-04-27 10:37:58 +00:00
invite Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
knock Add e2e tests for the knocking feature (#11803) 2023-11-07 14:00:24 +00:00
lazy-loading Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
permalinks Fix: flaky percy test "Rendering permalinks" (#10874) 2023-05-19 02:53:44 +00:00
polls Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
presence Implement new unreachable state and fix broken string ref (#11748) 2023-11-07 10:14:30 +00:00
read-receipts Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
regression-tests Update pills-click-in-app.spec.ts - use Cypress Testing Library (#10582) 2023-04-16 22:50:57 +00:00
right-panel Fix: Space scope header overflow (#11933) 2023-11-29 08:25:34 +00:00
room Fix broken tests 2023-09-14 16:55:14 +05:30
room-directory Update room-directory.spec.ts - use Cypress Testing Library (#10596) 2023-04-17 09:54:35 +00:00
settings Default bundled emoji font to on (#11935) 2023-11-27 09:59:09 +00:00
sliding-sync Disabled sliding sync tests in failure (#11043) 2023-06-05 13:32:11 +00:00
spaces Disable axe check which only fails in Chrome (#11909) 2023-11-20 09:58:09 +00:00
spotlight Add e2e tests for the knocking feature (#11803) 2023-11-07 14:00:24 +00:00
threads Disable a flaky threads test (#11810) 2023-10-31 14:24:41 +00:00
timeline add emoji messages to percy screenshot (#11775) 2023-10-23 20:17:42 +00:00
user-view Stabilise Percy snapshot of the user view (#11399) 2023-08-14 07:40:02 +00:00
widgets Add e2e tests for the knocking feature (#11803) 2023-11-07 14:00:24 +00:00
utils.ts Add e2e tests for the knocking feature (#11803) 2023-11-07 14:00:24 +00:00