瀏覽代碼

Extended the manual test.

Piotrek Koszuliński 7 年之前
父節點
當前提交
3fffa83c35

+ 6 - 0
packages/ckeditor5-engine/tests/manual/tickets/721/1.html

@@ -1,3 +1,9 @@
+<style>
+	.ck-widget {
+		border: solid 3px blue;
+	}
+</style>
+
 <div id="editor">
 	<p>This is an <strong>editor</strong> instance.</p>
 </div>

+ 2 - 1
packages/ckeditor5-engine/tests/manual/tickets/721/1.js

@@ -59,7 +59,8 @@ ClassicEditor
 
 		setData( editor.model,
 			'<paragraph>foo[]</paragraph>' +
-			'<widget><nested>bar</nested></widget>'
+			'<widget><nested>bar</nested></widget>' +
+			'<widget><nested>bom</nested></widget>'
 		);
 	} )
 	.catch( err => {

+ 7 - 2
packages/ckeditor5-engine/tests/manual/tickets/721/1.md

@@ -1,11 +1,16 @@
 ## Renderer should handle nested editables [FF] <a href="https://github.com/ckeditor/ckeditor5/issues/721">ckeditor5#721</a>
 
+### TC1
+
 1. Put the caret in the first paragraph and type something.
-1. Put the caret inside the widget (where is `bar` already).
-1. Click `Undo`.
+1. Put the caret inside the widget (in "bar").
+1. Click "Undo" or press <kbd>Ctrl</kbd>+<kbd>Z</kbd> (check both).
 
 **Expected**:
 
 No error in the console.
 
+### TC2
+
+Try the same TC as above but use both nested editables. See if the focus is correctly moved between them.