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 Update audio-player.spec.ts to reflect the latest status (#10537) 2023-04-10 10:53:23 +00:00
composer Commands for plain text editor (#10567) 2023-04-27 07:37:47 +00:00
create-room Update create-room.spec.ts - deprecate custom commands (#10542) 2023-04-11 06:09:38 +00:00
crypto Add Cypress tests for the "complete security" phase (#10668) 2023-04-20 11:04:51 +00:00
editing Update editing.spec.ts (#10543) 2023-04-11 08:22:45 +00:00
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 Update location.spec.ts - use Cypress Testing Library (#10612) 2023-04-17 08:24:09 +00:00
login Update login.spec.ts - use Cypress Testing Library (#10597) 2023-04-14 11:40:43 +00:00
one-to-one-chat Update one-to-one-chat.spec.ts - use Cypress Testing Library (#10572) 2023-04-12 13:11:28 +00:00
permalinks Implement permalink end-2-end test (#10434) 2023-03-29 13:52:57 +02:00
polls Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
register Update register.spec.ts - use Cypress Testing Library (#10566) 2023-04-11 17:37:05 +00:00
regression-tests Update pills-click-in-app.spec.ts - use Cypress Testing Library (#10582) 2023-04-16 22:50:57 +00:00
right-panel Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
room Update room.spec.ts - use Cypress Testing Library (#10608) 2023-04-17 07:35:14 +00:00
room-directory Update room-directory.spec.ts - use Cypress Testing Library (#10596) 2023-04-17 09:54:35 +00:00
settings Merge set-integration-manager.spec.ts with general-user-settings-tab.spec.ts (#10698) 2023-04-24 07:56:25 +00:00
sliding-sync Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
spaces Update spaces.spec.ts - use Cypress Testing Library (#10620) 2023-04-20 21:36:44 +00:00
spotlight Update spotlight.spec.ts - use Cypress Testing Library (#10621) 2023-04-17 14:06:20 +00:00
threads Update roles cypress is looking for (#10708) 2023-04-25 14:46:18 +00:00
timeline Update tests to ensure file size unit has been fixed (#10568) 2023-04-12 10:21:13 +00:00
toasts Make cypress happy about spec files all containing tests (#10709) 2023-04-25 15:42:59 +00:00
update Add dendrite support to cypress tests (#9884) 2023-01-10 16:29:56 -07:00
user-menu Update user-menu.spec.ts - use Cypress Testing Library (#10578) 2023-04-12 12:56:34 +00:00
user-onboarding Make cypress happy about spec files all containing tests (#10709) 2023-04-25 15:42:59 +00:00
user-view Update user-view.spec.ts - use Cypress Testing Library (#10577) 2023-04-12 15:55:10 +00:00
widgets Update events.spec.ts - use Cypress Testing Library (#10590) 2023-04-20 09:33:31 +00:00