riot-web/test/components/views/rooms
alunturner ca25c8f430
Commands for plain text editor (#10567)
* add the handlers for when autocomplete is open plus rough / handling

* hack in using the wysiwyg autocomplete

* switch to using onSelect for the behaviour

* expand comment

* add a handle command function to replace text

* add event firing step

* fix TS errors for RefObject

* extract common functionality to new util

* use util for plain text mode

* use util for rich text mode

* remove unused imports

* make util able to handle either type of keyboard event

* fix TS error for mxClient

* lift all new code into main component prior to extracting to custom hook

* shift logic into custom hook

* rename ref to editorRef for clarity

* remove comment

* try to add cypress test for behaviour

* remove unused imports

* fix various lint/TS errors for CI

* update cypress test

* add test for pressing escape to close autocomplete

* expand cypress tests

* add typing while autocomplete open test

* refactor to single piece of state and update comments

* update comment

* extract functions for testing

* add first tests

* improve tests

* remove console log

* call useSuggestion hook from different location

* update useSuggestion hook tests

* improve cypress tests

* remove unused import

* fix selector in cypress test

* add another set of util tests

* remove .only

* remove .only

* remove import

* improve cypress tests

* remove .only

* add comment

* improve comments

* tidy up tests

* consolidate all cypress tests to one

* add early return

* fix typo, add documentation

* add early return, tidy up comments

* change function expression to function declaration

* add documentation

* fix broken test

* add check to cypress tests

* update types

* update comment

* update comments

* shift ref declaration inside the hook

* remove unused import

* update cypress test and add comments

* update usePlainTextListener comments

* apply suggested changes to useSuggestion

* update tests

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-27 07:37:47 +00: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
__snapshots__ Fix decryption failure bar covering the timeline (#10360) 2023-03-30 10:11:16 +01:00
wysiwyg_composer Commands for plain text editor (#10567) 2023-04-27 07:37:47 +00:00
BasicMessageComposer-test.tsx fix: correctly identify emoticons (#10108) 2023-02-08 17:29:12 +01:00
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 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
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
SearchResultTile-test.tsx Fix "[object Promise]" appearing in HTML exports (#9975) 2023-01-30 14:31:32 +00:00
SendMessageComposer-test.tsx Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00
VoiceRecordComposerTile-test.tsx Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00