patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

CodeEditor - testing is needed for interactions with React Dropzone and the Monaco Editor

Open wise-king-sullyman opened this issue 3 years ago • 1 comments

As mentioned in #7450 the Code Editor is lacking in test coverage based on our newly determined testing guidelines.

I anticipate the most difficult part of this issue will likely be determining how we should test certain aspects surrounding the Monaco Editor and React Dropzone libraries that we use.

Monaco seems to do something that makes entering text in its editor difficult using RTL, and React Dropzone has functions (such as its open function) which I'm not sure how would be best to test.

wise-king-sullyman avatar May 25 '22 14:05 wise-king-sullyman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jul 30 '22 18:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Sep 30 '22 14:09 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Dec 04 '22 22:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Feb 05 '23 08:02 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 08 '23 02:04 stale[bot]

Monaco mock from ACM: https://github.com/stolostron/console/blob/main/frontend/mocks/react-monaco-editor.tsx Where it's used: https://github.com/stolostron/console/blob/main/frontend/src/components/SyncEditor/SyncEditor.test.tsx

wise-king-sullyman avatar Apr 25 '23 15:04 wise-king-sullyman