mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 23:58:58 -04:00
Replace splitter e2e test with unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
8a12755164
commit
3a74ce9267
10 changed files with 449 additions and 97 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue