Skip to content

Commit

Permalink
Add manual test for drag and drop mixed content in table
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Dawidziuk authored and sculpt0r committed Nov 23, 2021
1 parent 063b3dc commit ec7ece5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/plugins/tableselection/manual/draganddropmixedcontent.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<textarea id="editor">
<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
<tbody>
<tr>
<td>--&gt;&nbsp;<img alt="" src="http://via.placeholder.com/100" />&nbsp;<br />
Lorem ipsum dolor &lt;--<br />
sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&nbsp;</td>
<td>test</td>
</tr>
<tr>
<td>
<p> </p>

<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>

<p> </p>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</textarea>

<script>
( function() {
if ( bender.tools.env.mobile ) {
return bender.ignore();
}

bender.tools.ignoreUnsupportedEnvironment( 'tableselection' );

CKEDITOR.replace( 'editor', {
height: 350
} );
} )();
</script>
19 changes: 19 additions & 0 deletions tests/plugins/tableselection/manual/draganddropmixedcontent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@bender-tags: dialog, 4.17.1 547, bug
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, toolbar, table, tableselection, undo, sourcearea, elementspath, image, basicstyles

**Note:** Before you start moving the selected mixed content text using D&D, hold down the left mouse button for a moment on selected text.

1. Open browser's console.
2. Select content between `--> <--`.
3. Using drag&drop move selected content to other table cell.

**Expected**

* Selected content was moved properly.
* The content looking good and there is no error in the console.

**Unxpected**

* Selected content was not moved.
* There's error in the console.

0 comments on commit ec7ece5

Please sign in to comment.