element-web/cypress/e2e
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
..
audio-player
composer Commands for plain text editor (#10567) 2023-04-27 07:37:47 +00:00
create-room
crypto
editing
integration-manager Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
lazy-loading Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
location
login
one-to-one-chat
permalinks
polls Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
register
regression-tests
right-panel Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
room
room-directory
settings
sliding-sync Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
spaces
spotlight
threads Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
timeline
toasts Make cypress happy about spec files all containing tests (#10709) 2023-04-25 15:42:59 +00:00
update
user-menu
user-onboarding Make cypress happy about spec files all containing tests (#10709) 2023-04-25 15:42:59 +00:00
user-view
widgets