Parcourir la source

Add test checking aria-label.

Mateusz Samsel il y a 6 ans
Parent
commit
160cad91a5
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      packages/ckeditor5-table/tests/tabletoolbar.js

+ 8 - 0
packages/ckeditor5-table/tests/tabletoolbar.js

@@ -94,6 +94,14 @@ describe( 'TableToolbar', () => {
 					balloonClassName: 'ck-toolbar-container'
 					balloonClassName: 'ck-toolbar-container'
 				} );
 				} );
 			} );
 			} );
+
+			it( 'should set aria-label attribute', () => {
+				toolbar.render();
+
+				expect( toolbar.element.getAttribute( 'aria-label' ) ).to.equal( 'Table toolbar' );
+
+				toolbar.destroy();
+			} );
 		} );
 		} );
 
 
 		describe( 'integration with the editor focus', () => {
 		describe( 'integration with the editor focus', () => {