Przeglądaj źródła

Add test checking aria-label.

Mateusz Samsel 6 lat temu
rodzic
commit
6c1b14f7ca

+ 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', () => {