ソースを参照

Aligned MediaFormView to the new LabeledInputView API.

Aleksander Nowodzinski 5 年 前
コミット
7fa1257390
1 ファイル変更3 行追加6 行削除
  1. 3 6
      packages/ckeditor5-media-embed/tests/ui/mediaformview.js

+ 3 - 6
packages/ckeditor5-media-embed/tests/ui/mediaformview.js

@@ -78,10 +78,6 @@ describe( 'MediaFormView', () => {
 		} );
 
 		describe( 'url input view', () => {
-			it( 'has placeholder', () => {
-				expect( view.urlInputView.fieldView.placeholder ).to.equal( 'https://example.com' );
-			} );
-
 			it( 'has info text', () => {
 				expect( view.urlInputView.infoText ).to.match( /^Paste the media URL/ );
 			} );
@@ -121,9 +117,10 @@ describe( 'MediaFormView', () => {
 		} );
 
 		it( 'should register child views\' #element in #focusTracker', () => {
-			const spy = testUtils.sinon.spy( FocusTracker.prototype, 'add' );
-
 			view = new MediaFormView( [], { t: () => {} } );
+
+			const spy = testUtils.sinon.spy( view.focusTracker, 'add' );
+
 			view.render();
 
 			sinon.assert.calledWithExactly( spy.getCall( 0 ), view.urlInputView.element );