-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine 👌
@@ -263,4 +264,25 @@ describe( 'ImageUploadProgress', () => { | |||
'</figure>]' | |||
); | |||
} ); | |||
|
|||
it( 'should not create completeIcon element when browser is Microsoft Edge', () => { | |||
env.isEdge = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use sino#stub
. And you should restore the stub after the test. You can use testUtils
sandbox (it is automatically restored in aftearEach
).
testUtils.sinon.stub( env, 'isEdge' ).returns( true );
CC is decreased #220 (comment) |
@@ -209,11 +210,14 @@ function _hideProgressBar( viewFigure, writer ) { | |||
function _showCompleteIcon( viewFigure, writer, view ) { | |||
const completeIcon = new UIElement( 'div', { class: 'ck-image-upload-complete-icon' } ); | |||
|
|||
writer.insert( ViewPosition.createAt( viewFigure, 'end' ), completeIcon ); | |||
// Because in Edge there is no way to show fancy animation of completeIcon we need to skip it. | |||
if ( !env.isEdge ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this check here https://github.com/ckeditor/ckeditor5-image/pull/220/files#diff-3efbae15fe72a5fbcecff93633200c17R108
CI is failing because of https://github.com/ckeditor/ckeditor5-image/issues/221. |
Suggested merge commit message (convention)
Fix: Complete upload icon should not be rendered in Edge. Closes ckeditor/ckeditor5/issues/1066.