Sfoglia il codice sorgente

Tests: Update manual tests description.

Maciej Gołaszewski 7 anni fa
parent
commit
3aee54cb38

+ 1 - 48
packages/ckeditor5-table/tests/manual/table.html

@@ -6,54 +6,7 @@
 </style>
 
 <div id="editor">
-
-	<p>Table with block contents:</p>
-
-	<table>
-		<thead>
-		<tr>
-			<th>what</th>
-			<th>example</th>
-		</tr>
-		</thead>
-		<tbody>
-		<tr>
-			<td>text</td>
-			<td>Foo</td>
-		</tr>
-		<tr>
-			<td>paragraph</td>
-			<td><p>Foo</p></td>
-		</tr>
-		<tr>
-			<td>list</td>
-			<td>
-				<ul>
-					<li>foo</li>
-					<li>bar</li>
-				</ul>
-			</td>
-		</tr>
-		<tr>
-			<td>heading</td>
-			<td>
-				<h1>a h1</h1>
-				<h2>a h2</h2>
-				<h3>a h3</h3>
-				<h4>a h4</h4>
-				<h5>a h5</h5>
-			</td>
-		</tr>
-		<tr>
-			<td>block quote</td>
-			<td>
-				<blockquote>a quote</blockquote>
-			</td>
-		</tr>
-		</tbody>
-	</table>
-
-	<p>Table with everything:</p>
+	<p>Complex table:</p>
 
 	<figure>
 		<figcaption>Data about the planets of our solar system (Planetary facts taken from <a

+ 14 - 2
packages/ckeditor5-table/tests/manual/tableblockcontent.md

@@ -1,7 +1,19 @@
 ### Loading
 
-1. The data should be loaded with:
-  * a complex table with:
+1. The data should be loaded with a table with block contents in second column:
+
+    * Paragraph - it should be rendered as `<span>` if single paragraph is inside table cell.
+    * List
+    * Heading
+    * Block Quote (with inner paragraph)
+    * Image
+
+2. The third column consist blocks with text alignment.
+    * Paragraph - should be rendered was `<p>` when alignment is set (apart from default) for single paragraph.
 
 ### Testing
 
+1. Use <kbd>Enter</kbd> in cells with single `<pargraph>`. When two `<paragraph>`'s are in one table cell they should be rendered as `<p>`.
+2. Undo previous step - the `<p>` element should be changed to `<span>` for single paragraph.
+3. Change `<heading>` to paragraph - it should be rendered as `<p>` element if there are other headings or other block content.
+4. Change one `<heading>` to paragraph and remove other headings. The `<paragraph>` should be rendered as `<span>`.