Skip to content

Commit

Permalink
Tests: add manual test (widget - keystroke).
Browse files Browse the repository at this point in the history
  • Loading branch information
hub33k committed Jun 8, 2020
1 parent 3bf82b2 commit 311aec8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/plugins/widget/manual/keystroke.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div id="editor">
Hello world.
</div>

<script>
CKEDITOR.replace( 'editor', {
keystrokes: [
[ CKEDITOR.CTRL + 13 /*Enter*/, 'source' ]
]
} );
</script>
29 changes: 29 additions & 0 deletions tests/plugins/widget/manual/keystroke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@bender-tags: widget, bug, 4.14.1, 3998
@bender-ui: collapsed
@bender-ckeditor-plugins: toolbar, wysiwygarea, sourcearea, widget

1. Open console in dev tools.

1. Place cursor inside editor.

1. Press <kbd>CTRL</kbd> and <kbd>Enter</kbd> key.

### Expected

Source mode is opened and no error appears in dev console.

### Unexpected

Error appears in dev console or source mode editor is not opened.

1. Place cursor inside editor.

1. Press <kbd>CTRL</kbd> and <kbd>Enter</kbd> key.

### Expected

Editor switches to WYSIWYG mode. No error appears in dev console.

### Unexpected

Error appears in dev console or WYSIWYG area is not opened.

0 comments on commit 311aec8

Please sign in to comment.