8
0
Просмотр исходного кода

Fix execution order inside one of the forceValue=true tests

panr 6 лет назад
Родитель
Сommit
02bb8c5786

+ 3 - 3
packages/ckeditor5-restricted-editing/tests/restrictededitingexceptioncommand.js

@@ -131,12 +131,12 @@ describe( 'RestrictedEditingExceptionCommand', () => {
 					writer.setSelectionAttribute( 'restrictedEditingException', true );
 				} );
 
-				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.true;
-
 				command.execute( { forceValue: true } );
+
+				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.true;
 			} );
 
-			it( 'should remove attribute from text node if a text has the non-restricted attribute', () => {
+			it( 'should remove an attribute from text node if a text has the non-restricted attribute', () => {
 				setData( model, '<p>abc<$text restrictedEditingException="true">foo[]bar</$text>baz</p>' );
 
 				command.execute();