8
0
Quellcode durchsuchen

Add test checking aria-label.

Mateusz Samsel vor 6 Jahren
Ursprung
Commit
c5d461c0ff
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      packages/ckeditor5-image/tests/imagetoolbar.js

+ 8 - 0
packages/ckeditor5-image/tests/imagetoolbar.js

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