Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Added manual test for #127 issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Sep 6, 2017
1 parent 37564c9 commit a409034
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@ckeditor/ckeditor5-widget": "^0.2.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^0.9.0",
"@ckeditor/ckeditor5-clipboard": "^0.7.0",
"@ckeditor/ckeditor5-dev-lint": "^3.1.0",
"@ckeditor/ckeditor5-editor-classic": "^0.8.0",
Expand Down
6 changes: 6 additions & 0 deletions tests/manual/tickets/127/1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div id="editor">
<p>foo bar <a href="foo">Link <strong>bold</strong></a></p>
<figure class="image">
<img src="../../sample.jpg" alt="CKEditor logo" />
</figure>
</div>
29 changes: 29 additions & 0 deletions tests/manual/tickets/127/1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

/* global document, console, window */

import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Link from '@ckeditor/ckeditor5-link/src/link';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Image from '../../../../src/image';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import ContextualToolbar from '@ckeditor/ckeditor5-ui/src/toolbar/contextual/contextualtoolbar';
import ImageToolbar from '../../../../src/imagetoolbar';

ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ Enter, Typing, Paragraph, Link, Bold, Image, Undo, ImageToolbar, ContextualToolbar ],
toolbar: [ 'bold', 'undo', 'redo' ],
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
5 changes: 5 additions & 0 deletions tests/manual/tickets/127/1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Update caption visibility when typing at the end of a link [#127](https://github.com/ckeditor/ckeditor5-image/issues/127)

1. Place caret at the end of the link.
1. Type two letters.
1. No error should be displayed to console, and normal typing should be possible.

0 comments on commit a409034

Please sign in to comment.