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

Tests: Fix the mention ui test.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
ed8bc0897f
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      packages/ckeditor5-mention/tests/mentionui.js

+ 5 - 5
packages/ckeditor5-mention/tests/mentionui.js

@@ -1249,9 +1249,9 @@ describe( 'MentionUI', () => {
 					.then( () => {
 						expect( panelView.isVisible ).to.be.true;
 						expect( editor.model.markers.has( 'mention' ) ).to.be.true;
-						expect( listView.items ).to.have.length( 3 );
+						expect( mentionsView.items ).to.have.length( 3 );
 
-						listView.items.get( 0 ).children.get( 0 ).fire( 'execute' );
+						mentionsView.items.get( 0 ).children.get( 0 ).fire( 'execute' );
 					} )
 					.then( waitForDebounce )
 					.then( () => {
@@ -1266,9 +1266,9 @@ describe( 'MentionUI', () => {
 					.then( () => {
 						expect( panelView.isVisible ).to.be.true;
 						expect( editor.model.markers.has( 'mention' ) ).to.be.true;
-						expect( listView.items ).to.have.length( 5 );
+						expect( mentionsView.items ).to.have.length( 5 );
 
-						listView.items.get( 0 ).children.get( 0 ).fire( 'execute' );
+						mentionsView.items.get( 0 ).children.get( 0 ).fire( 'execute' );
 					} )
 					.then( waitForDebounce )
 					.then( () => {
@@ -1284,7 +1284,7 @@ describe( 'MentionUI', () => {
 						expect( panelView.isVisible ).to.be.true;
 						expect( editor.model.markers.has( 'mention' ) ).to.be.true;
 
-						expect( listView.items ).to.have.length( 3 );
+						expect( mentionsView.items ).to.have.length( 3 );
 					} );
 			} );
 		} );