Replace splitter e2e test with unit test

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-04-03 16:45:30 +02:00
parent 8a12755164
commit 3a74ce9267
10 changed files with 449 additions and 97 deletions

View file

@ -30,6 +30,7 @@ import { EditorView } from '@codemirror/view'
import { autocompletion } from '@codemirror/autocomplete'
import { useCodeMirrorFocusReference } from './hooks/use-code-mirror-focus-reference'
import { useOffScreenScrollProtection } from './hooks/use-off-screen-scroll-protection'
import { cypressId } from '../../../utils/cypress-attribute'
const logger = new Logger('EditorPane')
@ -94,7 +95,8 @@ export const EditorPane: React.FC<ScrollProps> = ({ scrollState, onScroll, onMak
<div
className={`d-flex flex-column h-100 position-relative`}
onTouchStart={onMakeScrollSource}
onMouseEnter={onMakeScrollSource}>
onMouseEnter={onMakeScrollSource}
{...cypressId('editor-pane')}>
<MaxLengthWarning />
<ToolBar />
<ReactCodeMirror