瀏覽代碼

Tests: Added unit test coverage.

Marek Lewandowski 5 年之前
父節點
當前提交
1b4f4922b3
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      packages/ckeditor5-table/tests/commands/removerowcommand.js

+ 9 - 0
packages/ckeditor5-table/tests/commands/removerowcommand.js

@@ -86,6 +86,15 @@ describe( 'RemoveRowCommand', () => {
 
 			expect( command.isEnabled ).to.be.false;
 		} );
+
+		it( 'should be false when the first column with rowspan is selected', () => {
+			editor.setData(
+				'<figure class="table"><table><thead><tr><th rowspan="2">☕️ Espresso</th><th>🥛 Milk</th></tr><tr>' +
+				'<th>Steamed</th></tr></thead><tbody><tr><td>✅ yes</td><td>✅ yes</td></tr></tbody></table></figure>'
+			);
+
+			expect( command.isEnabled ).to.be.false;
+		} );
 	} );
 
 	describe( 'execute()', () => {