8
0
Mateusz Samsel 6 лет назад
Родитель
Сommit
6c1b14f7ca
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      packages/ckeditor5-media-embed/tests/mediaembedtoolbar.js

+ 8 - 0
packages/ckeditor5-media-embed/tests/mediaembedtoolbar.js

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