浏览代码

Tests: Update table manual test with description and minor fixes.

Maciej Gołaszewski 7 年之前
父节点
当前提交
fe704ae464

+ 2 - 2
packages/ckeditor5-table/tests/manual/table.html

@@ -29,7 +29,7 @@
 <div id="editor">
 	<p>Table with everything:</p>
 	<table>
-		<caption>Data about the planets of our solar system (Planetary facts taken from <a href="http://nssdc.gsfc.nasa.gov/planetary/factsheet/" class="external external-icon" rel="noopener">Nasa's Planetary Fact Sheet - Metric</a>.</caption>
+		<caption>Data about the planets of our solar system (Planetary facts taken from <a href="http://nssdc.gsfc.nasa.gov/planetary/factsheet/">Nasa's Planetary Fact Sheet - Metric</a>.</caption>
 		<thead>
 		<tr>
 			<td colspan="2">&nbsp;</td>
@@ -157,7 +157,7 @@
 			<td>5906.4</td>
 			<td>-225</td>
 			<td>5</td>
-			<td>Declassified as a planet in 2006, but this <a href="http://www.usatoday.com/story/tech/2014/10/02/pluto-planet-solar-system/16578959/" class="external external-icon" rel="noopener">remains controversial</a>.</td>
+			<td>Declassified as a planet in 2006, but this <a href="http://www.usatoday.com/story/tech/2014/10/02/pluto-planet-solar-system/16578959/">remains controversial</a>.</td>
 		</tr>
 		</tbody>
 	</table>

+ 1 - 1
packages/ckeditor5-table/tests/manual/table.js

@@ -17,7 +17,7 @@ ClassicEditor
 			'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
 		],
 		table: {
-			toolbar: [ 'tableColumn', 'tableRow', 'mergeCell', 'splitCell' ]
+			toolbar: [ 'tableColumn', 'tableRow', 'mergeCell' ]
 		}
 	} )
 	.then( editor => {

+ 64 - 0
packages/ckeditor5-table/tests/manual/table.md

@@ -1,3 +1,67 @@
 ### Loading
 
+1. The data should be loaded with:
+  * a complex table with:
+    - one heading row, 
+    - two heading columns, 
+    - merged cells in heading columns section,
+  * a table with 2 tbody sections in the DOM - should be rendered as a table with one tbody.
+  * a table with no tbody sections in the DOM - should be rendered as a table with one tbody.
+  * a table with a thead section between two tbody sections in dom - should be rendered as a table with one thead and on tbody section in proper order: 1, 2, 3.
+
+2. Main toolbar should have insert table dropdown.
+  
+3. While the table widget is selected there should be a toolbar attached to the table with 3 dropdowns:
+  * column dropdown with items:
+    - header column,
+    - insert column before,
+    - insert column after,
+    - delete column.
+  * row dropdown with items:
+    - header row,
+    - insert row below,
+    - insert row above,
+    - delete row.
+  * merge cell dropdown with items:
+    - merge cell up,
+    - merge cell right,
+    - merge cell down,
+    - merge cell left,
+    - split cell vertically,
+    - split cell horizontally,
+
 ### Testing
+
+Inserting table:
+
+1. Insert table of chosen size - the inserted table should have number columns & rows as selected in dropdown.
+2. Re-opening dropdown should reset selected table size.
+3. Table cannot be inserted into other table.
+
+Column manipulation:
+
+1. Insert column in table heading section.
+2. Insert column in merged cell.
+3. Insert column at the end/beginning of a table.
+4. Remove column from table heading section.
+5. Remove column of merged cell.
+6. Change column heading status.
+
+Column manipulation:
+
+1. Insert row in table heading section.
+2. Insert row in merged cell.
+3. Insert row at the end/beginning of a table.
+4. Remove row from table heading section.
+5. Remove row of merged cell.
+6. Change row heading status.
+
+Merging cells:
+
+1. Merge cell on the left/right/top/bottom of current cell.
+2. Merge cell on the left/right/top/bottom touching another table section (mergin a table cell from header row with a cell from body should not be possible).
+3. Merge cells that are already merged.
+
+Splitting cells:
+1. Split not merged cell vertically/horizontally.
+2. Split already merged cell vertically/horizontally.