element-web-Github/test/components/views/rooms
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
..
__snapshots__ Fix decryption failure bar covering the timeline (#10360) 2023-03-30 10:11:16 +01:00
EventTile Add EventTileThreadToolbar tests (#10243) 2023-02-27 16:27:13 +00:00
NotificationBadge Conform more code to strict null checking (#10153) 2023-02-15 13:36:22 +00:00
wysiwyg_composer Room and user mentions for plain text editor (#10665) 2023-05-11 14:28:42 +00:00
BasicMessageComposer-test.tsx fix: correctly identify emoticons (#10108) 2023-02-08 17:29:12 +01:00
DecryptionFailureBar-test.tsx Improve decryption error UI by consolidating error messages and providing instructions when possible (#9544) 2022-12-15 17:24:33 +00:00
EditMessageComposer-test.tsx Properly generate mentions when editing a reply with MSC3952 (#10486) 2023-04-02 21:32:12 +00:00
EventTile-test.tsx Replace uses of checkDeviceTrust with getDeviceVerificationStatus (#10663) 2023-04-24 14:19:46 +01:00
ExtraTile-test.tsx Refactor ExtraTile to use functional components (#10191) 2023-02-23 11:57:37 +00:00
MemberList-test.tsx Replace react-dom tests with react testing-library tests (#10260) 2023-03-01 15:59:27 +00:00
MessageComposer-test.tsx remove old debug logging in AsyncWrapper (#10661) 2023-04-19 07:45:27 +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 Implement third-party invite waiting room (#10229) 2023-03-06 12:08:04 +01:00
ReadReceiptGroup-test.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
RoomHeader-test.tsx Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
RoomList-test.tsx Show room create icon if "UIComponent.roomCreation" is enabled (#10364) 2023-04-03 09:19:56 +12:00
RoomListHeader-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
RoomPreviewBar-test.tsx Support joining non-peekable rooms via the module API (#10154) 2023-02-23 10:29:21 +00:00
RoomPreviewCard-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomTile-test.tsx Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
SearchBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SearchResultTile-test.tsx Fix "[object Promise]" appearing in HTML exports (#9975) 2023-01-30 14:31:32 +00:00
SendMessageComposer-test.tsx Avoid calling prepareToEncrypt onKeyDown (#10828) 2023-05-09 10:56:12 +00:00
VoiceRecordComposerTile-test.tsx Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00