瀏覽代碼

Add missing test to check toolbar buttons tooltips

panr 5 年之前
父節點
當前提交
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;