Selaa lähdekoodia

Tests: Corrected unit test selection.

Marek Lewandowski 5 vuotta sitten
vanhempi
commit
b6b3270e68
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      packages/ckeditor5-table/tests/commands/removerowcommand.js

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

@@ -95,6 +95,13 @@ describe( 'RemoveRowCommand', () => {
 				[ '20', '21' ]
 			] ) );
 
+			const tableSelection = editor.plugins.get( TableSelection );
+			const modelRoot = model.document.getRoot();
+			tableSelection._setCellSelection(
+				modelRoot.getNodeByPath( [ 0, 0, 0 ] ),
+				modelRoot.getNodeByPath( [ 0, 2, 0 ] )
+			);
+
 			expect( command.isEnabled ).to.be.false;
 		} );
 	} );