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

Add missing test to check toolbar buttons tooltips

panr 5 лет назад
Родитель
Сommit
0755669148
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      packages/ckeditor5-table/tests/ui/utils.js

+ 6 - 0
packages/ckeditor5-table/tests/ui/utils.js

@@ -421,6 +421,12 @@ describe( 'UI Utils', () => {
 			expect( toolbar.items.last.icon ).to.equal( icons.third );
 		} );
 
+		it( 'should set button tooltips', () => {
+			expect( toolbar.items.first.tooltip ).to.equal( labels.first );
+			expect( toolbar.items.get( 1 ).tooltip ).to.equal( labels.second );
+			expect( toolbar.items.last.tooltip ).to.equal( labels.third );
+		} );
+
 		it( 'should bind button #isOn to an observable property', () => {
 			expect( toolbar.items.first.isOn ).to.be.false;
 			expect( toolbar.items.get( 1 ).isOn ).to.be.false;