|
|
@@ -330,13 +330,13 @@ describe( 'AutoMediaEmbed - integration', () => {
|
|
|
|
|
|
// #47
|
|
|
it( 'does not transform a valid URL into a media if the element cannot be placed in the current position', () => {
|
|
|
- setData( editor.model, '<image src="foo.png"><caption>Foo.[]</caption></image>' );
|
|
|
+ setData( editor.model, '<image src="/assets/sample.png"><caption>Foo.[]</caption></image>' );
|
|
|
pasteHtml( editor, 'https://www.youtube.com/watch?v=H08tGjXNHO4' );
|
|
|
|
|
|
clock.tick( 100 );
|
|
|
|
|
|
expect( getData( editor.model ) ).to.equal(
|
|
|
- '<image src="foo.png"><caption>Foo.https://www.youtube.com/watch?v=H08tGjXNHO4[]</caption></image>'
|
|
|
+ '<image src="/assets/sample.png"><caption>Foo.https://www.youtube.com/watch?v=H08tGjXNHO4[]</caption></image>'
|
|
|
);
|
|
|
} );
|
|
|
|