Skip to content

Commit

Permalink
Mention: 100% CC.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Jun 17, 2020
1 parent bde9bed commit 20fab62
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/ckeditor5-mention/tests/mention-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,18 @@ describe( 'Mention feature - integration', () => {

return new Promise( resolve => setTimeout( resolve, 200 ) )
.then( () => {
const model = editor.model;

// Show link UI
editor.execute( 'link', '@' );
// The link is not being selected after inserting it. We need to put the selection manually. See #1016.
model.change( writer => {
writer.setSelection( writer.createRangeOn( model.document.getRoot().getChild( 0 ).getChild( 0 ) ) );
} );

editor.editing.view.document.fire( 'click' );

// The selection is after the link node. See #1016.
expect( panelView.isVisible ).to.be.false;
expect( panelView.isVisible ).to.be.true;
expect( balloon.visibleView === mentionsView ).to.be.false; // LinkUI

model.change( writer => {
Expand Down

0 comments on commit 20fab62

Please sign in to comment.