element-web/test
alunturner 0889dc55da
Room and user mentions for plain text editor (#10665)
* update useSuggestion

* update useSuggestion-tests

* add processMention tests

* add test

* add getMentionOrCommand tests

* change mock href for codeQL reasons

* fix TS issue in test

* add a big old cypress test

* fix lint error

* update comments

* reorganise functions in order of importance

* rename functions and variables

* add endOffset to return object

* fix failing tests

* update function names and comments

* update comment, remove delay

* update comments and early return

* nest mappedSuggestion inside Suggestion state and update test

* rename suggestion => suggestionData

* update comment

* add argument to findSuggestionInText

* make findSuggestionInText return mappedSuggestion

* fix TS error

* update comments and index check from === -1 to < 0

* tidy logic in increment functions

* rename variable

* Big refactor to address multiple comments, improve behaviour and add tests

* improve comments

* tidy up comment

* extend comment

* combine similar returns

* update comment

* remove single use variable

* fix comments
2023-05-11 14:28:42 +00:00
..
@types Use server side relations for voice broadcasts (#9534) 2022-11-07 14:19:49 +00:00
__snapshots__ add fallback reply for poll start (#10380) 2023-03-16 21:27:56 +00:00
accessibility Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
actions/handlers Apply prettier formatting 2022-12-12 12:24:14 +01:00
audio Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
autocomplete Support dynamic room predecessor in SpaceProvider (#10348) 2023-03-10 11:01:45 +00:00
components Room and user mentions for plain text editor (#10665) 2023-05-11 14:28:42 +00:00
contexts Add UserProfilesStore, LruCache and cache for user permalink profiles (#10425) 2023-03-27 10:07:43 +02:00
dispatcher Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
editor Fix autocomplete not resetting properly on message send (#10741) 2023-04-28 13:31:02 +00:00
events Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
hooks Convert remaining hook tests to RTL (#10166) 2023-02-16 14:13:05 +00:00
i18n
i18n-test Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img
models Fix a crash when a call ends while you're in it (#10681) 2023-04-21 13:54:27 +00:00
modules Fixes user authentication when registering via the module API (#10257) 2023-03-07 16:24:44 +01:00
notifications Apply prettier formatting 2022-12-12 12:24:14 +01:00
settings Conform more of the codebase to strictNullChecks (#10800) 2023-05-10 08:41:55 +01:00
setup Fix some features not being configurable via features (#10276) 2023-03-03 13:31:51 +00:00
stores set default activity ordering to natural for room list (#10820) 2023-05-08 20:58:53 +00:00
test-utils add push rules test utility (#10712) 2023-04-27 01:18:19 +00:00
toasts Revert "Implement new toast UI (#10467)" (#10740) 2023-04-28 14:56:26 +00:00
utils Fix: Edit history modal crash (#10834) 2023-05-11 10:21:02 +00:00
voice-broadcast Add audible notifcation on broadcast error (#10654) 2023-05-11 12:15: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 Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00
createRoom-test.ts Element-R: Starting a DMs with a user (#10673) 2023-04-24 14:19:08 +00:00
DecryptionFailureTracker-test.js Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
DeviceListener-test.ts DeviceListener: use new getUserDeviceInfo method (#10826) 2023-05-09 13:39:51 +00:00
email-test.ts Factor out basic email check (#10244) 2023-02-28 10:39:35 +01:00
globalSetup.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
HtmlUtils-test.tsx Merge pull request from GHSA-xv83-x443-7rmw 2023-04-25 09:30:32 +01: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.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
LegacyCallHandler-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
linkify-matrix-test.ts Update finite automate to match user identifiers as per spec (#10798) 2023-05-09 07:46:19 +00:00
Markdown-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
MatrixClientPeg-test.ts Handle IDB closed event by showing modal with prompt to reload app (#10395 2023-03-31 10:08:45 +01:00
MediaDeviceHandler-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
Notifier-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
PosthogAnalytics-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
PreferredRoomVersions-test.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
Reply-test.ts add fallback reply for poll start (#10380) 2023-03-16 21:27:56 +00:00
RoomNotifs-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
Rooms-test.ts Prevent unnecessary m.direct updates (#9805) 2022-12-21 09:30:08 -07: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
setupTests.js Kill off enzyme in preference of react testing library (#10255) 2023-03-06 15:17:46 +00:00
SlashCommands-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
SlidingSyncManager-test.ts Fix jest/no-conditional-expect lint and enable it (#10307) 2023-03-07 13:58:10 +00:00
slowReporter.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
Terms-test.tsx Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
TestSdkContext.ts Add voice broadcast playback pip (#9603) 2022-11-24 09:08:41 +01:00
TextForEvent-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
theme-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
Unread-test.ts Add unread fallback logging (#10509) 2023-04-11 07:41:59 +00:00
UserActivity-test.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
useTopic-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
WorkerManager-test.ts Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00