Przeglądaj źródła

Update test for checking the dropdown button tooltip

panr 5 lat temu
rodzic
commit
cb4dace253

+ 1 - 0
packages/ckeditor5-table/tests/ui/colorinputview.js

@@ -73,6 +73,7 @@ describe( 'ColorInputView', () => {
 			it( 'should be created', () => {
 			it( 'should be created', () => {
 				expect( view._dropdownView ).to.be.instanceOf( DropdownView );
 				expect( view._dropdownView ).to.be.instanceOf( DropdownView );
 				expect( view._dropdownView.buttonView.element.classList.contains( 'ck-input-color__button' ) ).to.be.true;
 				expect( view._dropdownView.buttonView.element.classList.contains( 'ck-input-color__button' ) ).to.be.true;
+				expect( view._dropdownView.buttonView.tooltip ).to.equal( 'Color picker' );
 			} );
 			} );
 
 
 			it( 'should bind #isEnabled to the view\'s #isReadOnly', () => {
 			it( 'should bind #isEnabled to the view\'s #isReadOnly', () => {