element-web/test
David Baker 6bfdb3e16b
Fix read receipt animation (#12923)
* Fix read receipt animation

The way it was done involved remembering dom nodes and then getting
their position later when animating the receipt to its next position,
but I'm not sure how this worked since the DOM node may not neccessarily
be in the DOM anymore. Instead, just remember the bounding box coordinates.
At worst it might go weird if the window is resized but seems fine in
practice. Also, keeping references to dom nodes feels like a fast road
to memory leaks.

Fixes https://github.com/element-hq/element-web/issues/27916

* Attempt to write a test for read receipts

and fix naming

* Another test

also change a condition to make it testable
2024-09-03 11:59:30 +00:00
..
@types Use server side relations for voice broadcasts (#9534) 2022-11-07 14:19:49 +00:00
__snapshots__ Allow Chrome page translator to translate messages in rooms (#11113) 2024-07-25 16:58:33 +00:00
accessibility Accessibility: Add Landmark navigation (#12190) 2024-07-17 14:46:45 +01:00
actions/handlers Move session manager out of beta (#10968) 2023-05-26 01:58:28 +00:00
audio Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
autocomplete Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
components Fix read receipt animation (#12923) 2024-09-03 11:59:30 +00:00
contexts New user profile UI in User Settings (#12548) 2024-06-06 13:56:38 +00:00
customisations Handle media download errors better (#12848) 2024-07-31 14:07:59 +00:00
dispatcher Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
editor Ignore permalink_prefix when serializing pills (#11726) 2024-08-01 11:17:44 +00:00
events Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
hooks Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
i18n Use Intl for names of languages (#11427) 2023-08-22 14:07:16 +00:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
integrations Stop using the js-sdk's compare function (#12782) 2024-07-17 13:51:42 +00:00
models Remove MatrixRTC realted import ES lint exceptions using a index.ts for matrixrtc (#12780) 2024-07-25 12:49:41 +00:00
modules Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
notifications Apply prettier formatting 2022-12-12 12:24:14 +01:00
settings Fix types 2024-08-06 11:23:26 +01:00
setup Fix incoming call toast crash due to audio refactor (#12737) 2024-07-08 12:44:54 +00:00
stores Implement download_file in widget driver (#12931) 2024-08-30 14:45:25 +00:00
test-utils Allow user to set timezone (#12775) 2024-09-02 09:07:07 +00:00
toasts Update toast styles to match Figma (#12833) 2024-07-30 12:57:15 +00:00
utils Display pinned messages on a banner at the top of a room (#12917) 2024-08-29 14:26:10 +00:00
voice-broadcast Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
widgets Align widget_build_url_ignore_dm with call behaviour switch between 1:1 and Widget (#12760) 2024-07-15 09:08:34 +00:00
Avatar-test.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
ContentMessages-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
createRoom-test.ts Remove MatrixRTC realted import ES lint exceptions using a index.ts for matrixrtc (#12780) 2024-07-25 12:49:41 +00:00
DecryptionFailureTracker-test.ts Element-R: Report events with withheld keys separately to Posthog. (#12755) 2024-07-10 09:22:59 +00:00
DeviceListener-test.ts Remove references to some deprecated js-sdk identifiers (#12729) 2024-07-04 15:50:07 +00:00
email-test.ts Factor out basic email check (#10244) 2023-02-28 10:39:35 +01:00
globalSetup.ts Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
HtmlUtils-test.tsx Fix alignment of RTL messages (#12837) 2024-07-31 22:23:46 +00:00
Image-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
KeyBindingsManager-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
languageHandler-test.tsx Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
LegacyCallHandler-test.ts Align widget_build_url_ignore_dm with call behaviour switch between 1:1 and Widget (#12760) 2024-07-15 09:08:34 +00:00
Lifecycle-test.ts Remove redundant call to setCrypto (#12738) 2024-07-08 10:57:54 +00:00
linkify-matrix-test.ts Fix clicking MXID in timeline going to matrix.to (#11263) 2023-07-14 10:55:55 +00:00
Markdown-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
MatrixClientPeg-test.ts Remove unused CryptoCallbacks implementations (#12919) 2024-08-23 14:00:18 +00:00
MediaDeviceHandler-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Modal-test.ts Close any open modals on logout (#12777) 2024-07-23 08:08:22 +00:00
Notifier-test.ts Remove MatrixRTC realted import ES lint exceptions using a index.ts for matrixrtc (#12780) 2024-07-25 12:49:41 +00:00
PosthogAnalytics-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
predictableRandom.ts GYU: Account Notification Settings (#11008) 2023-06-29 15:46:31 +00:00
PreferredRoomVersions-test.ts Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
Reply-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
RoomNotifs-test.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Rooms-test.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
ScalarAuthClient-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
SdkConfig-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
SecurityManager-test.ts Add logging to encryption setup (#12765) 2024-07-13 13:36:45 +01:00
setupTests.ts Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
SlashCommands-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
SlidingSyncManager-test.ts Fix well-known lookup for sliding sync labs check (#12519) 2024-05-14 12:40:10 +00:00
slowReporter.cjs Rename all the slow reporter stuff to cjs (#12933) 2024-08-27 14:46:50 +00:00
submit-rageshake-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
SupportedBrowser-test.ts Warn users on unsupported browsers before they lack features (#12830) 2024-07-29 16:05:34 +00:00
Terms-test.tsx Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
TestSdkContext.ts Upgrade target to es2022 (#12852) 2024-08-01 16:14:28 +00:00
TextForEvent-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
theme-test.ts Stop using the js-sdk's compare function (#12782) 2024-07-17 13:51:42 +00:00
TimezoneHandler-test.ts Allow user to set timezone (#12775) 2024-09-02 09:07:07 +00:00
Unread-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
UserActivity-test.ts Replace sinon fake timers with jest timers (#11275) 2023-07-17 12:29:51 +00:00
useTopic-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00