Explorar o código

Improved the manual test.

Piotrek Koszuliński %!s(int64=9) %!d(string=hai) anos
pai
achega
2fe1506f99

+ 2 - 2
packages/ckeditor5-enter/tests/manual/enter.js

@@ -8,8 +8,8 @@
 import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
 
 ClassicEditor.create( document.querySelector( '#editor' ), {
-	features: [ 'enter', 'typing', 'headings' ],
-	toolbar: [ 'headings' ]
+	features: [ 'enter', 'typing', 'headings', 'undo', 'basic-styles/bold', 'basic-styles/italic' ],
+	toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo' ]
 } )
 .then( editor => {
 	window.editor = editor;

+ 11 - 6
packages/ckeditor5-enter/tests/manual/enter.md

@@ -2,12 +2,17 @@
 
 ## Enter key
 
-Test the <kbd>Enter</kbd>kbd> key support.
+Test the <kbd>Enter</kbd> key support.
 
 ### Notes:
 
-* Enter at the end of a heading should create a new paragraph.
-* In the middle of a heading should split it.
-* <kbd>Shift+Enter</kbd> should have <kbd>Enter</kbd> behavior.
-* The selection should always be moved to the newly created block.
-* Select all + <kbd>Enter</kbd> should leave an empty paragraph.
+* Expected behavior:
+	* At the end of a heading should create a new paragraph.
+	* In the middle of a heading should split it.
+	* <kbd>Shift+Enter</kbd> should have <kbd>Enter</kbd> behavior.
+	* The selection should always be moved to the newly created block.
+	* Select all + <kbd>Enter</kbd> should leave an empty paragraph.
+* Check:
+  * Non-collapsed selections.
+  * Integration with undo.
+  * ~~Integration with basic styles~~ ([bug](https://github.com/ckeditor/ckeditor5-enter/issues/4)).