riot-web/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
..
EventTile
NotificationBadge
__snapshots__ Fix decryption failure bar covering the timeline (#10360) 2023-03-30 10:11:16 +01:00
wysiwyg_composer Room and user mentions for plain text editor (#10665) 2023-05-11 14:28:42 +00:00
BasicMessageComposer-test.tsx
DecryptionFailureBar-test.tsx
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
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
NewRoomIntro-test.tsx Implement third-party invite waiting room (#10229) 2023-03-06 12:08:04 +01:00
ReadReceiptGroup-test.tsx
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
RoomPreviewBar-test.tsx
RoomPreviewCard-test.tsx
RoomTile-test.tsx
SearchBar-test.tsx
SearchResultTile-test.tsx
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