Skip to content

Commit

Permalink
Review fixes. Adding ignore condition to tests. Little test improveme…
Browse files Browse the repository at this point in the history
…nts.
  • Loading branch information
Mateusz Samsel committed Nov 8, 2017
1 parent c0a6c4e commit 67ac4b8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@bender-tags: 1027, 4.8.0, widget
@bender-tags: 1027, 4.8.0, widget, bug
@bender-ui: collapsed
@bender-include: ../_helpers/testwidgets.js
@bender-ckeditor-plugins: undo,clipboard,basicstyles,toolbar,wysiwygarea,widget,table,resize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
<script>
CKEDITOR.replace( 'classic', {
extraPlugins: 'inlineWidget,blockWidget',
on: {
pluginsLoaded: function() {
if ( !CKEDITOR.plugins.tableselection.isSupportedEnvironment ) {
bender.ignore();
}
}
}
} );

CKEDITOR.replace( 'divarea', {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@bender-tags: 1027, 4.8.0, widget
@bender-tags: 1027, 4.8.0, widget, bug
@bender-ui: collapsed
@bender-include: ../_helpers/testwidgets.js
@bender-ckeditor-plugins: undo,clipboard,basicstyles,toolbar,wysiwygarea,widget,table,resize
@bender-ckeditor-plugins: undo,clipboard,basicstyles,toolbar,wysiwygarea,widget,table,resize,tableselection

----

Expand Down
11 changes: 9 additions & 2 deletions tests/tickets/1027/1.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<label>Lena's path: <input style="border:2px solid black" type="text" value="../../_assets/lena.jpg" readonly></label>
<textarea id="editor">
<p>Lena's path: "../../_assets/lena.jpg"</p>
<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
<tbody>
<tr>
Expand All @@ -22,6 +22,13 @@
</textarea>
<script>
CKEDITOR.replace( 'editor', {
extraPlugins: 'image2'
extraPlugins: 'image2',
on: {
pluginsLoaded: function() {
if ( !CKEDITOR.plugins.tableselection.isSupportedEnvironment ) {
bender.ignore();
}
}
}
} );
</script>
6 changes: 3 additions & 3 deletions tests/tickets/1027/1.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@bender-tags: 1027, 4.8.0, widget
@bender-tags: 1027, 4.8.0, widget, bug
@bender-ui: collapsed
@bender-ckeditor-plugins: undo,clipboard,basicstyles,toolbar,wysiwygarea,widget,table,tableselection,resize,image2

1. Click on the image of Lena.
1. Click into another cell and start to (Do not click outside of the table!):
1. Click into another cell and start to: _(Do not click outside of the table!)_
* type something
* add new image
* add new image (path to lena's image is above editor)

**Expected:**
* You can freely type and edit text.
Expand Down

0 comments on commit 67ac4b8

Please sign in to comment.