Skip to content

Commit

Permalink
Tests: add manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hub33k committed Sep 9, 2020
1 parent bac379c commit c359a1c
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
57 changes: 57 additions & 0 deletions tests/plugins/autocomplete/manual/windowborder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<style>
html,
body {
height: 100%;
}

.wrapper {
position: absolute;
bottom: 0;
display: inline-flex;
}

.wrapper > div:not(:last-of-type) {
margin-right: 15px;
}
</style>

<div class="wrapper">
<div id="classic">
<p>1 &nbsp;</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p>
<p>2 &nbsp;</p>
</div>

<div id="divarea">
<p>1 &nbsp;</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p>
<p>2 &nbsp;</p>
</div>

<div id="inline" contenteditable="true">
<p>1 &nbsp;</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p>
<p>2 &nbsp;</p>
</div>
</div>

<script>
bender.tools.ignoreUnsupportedEnvironment( 'autocomplete' );

var config = {
width: 300,
height: 150,
on: {
instanceReady: function( evt ) {
new CKEDITOR.plugins.autocomplete( evt.editor, {
textTestCallback: autocompleteUtils.getTextTestCallback(),
dataCallback: autocompleteUtils.getDataCallback()
} );
}
}
};

CKEDITOR.replace( 'classic', config );
CKEDITOR.replace( 'divarea', CKEDITOR.tools.extend( { extraPlugins: 'divarea' }, config ) );
CKEDITOR.inline( 'inline', config );
</script>
17 changes: 17 additions & 0 deletions tests/plugins/autocomplete/manual/windowborder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@bender-tags: 4.16.0, feature, 3582
@bender-ui: collapsed
@bender-ckeditor-plugins: sourcearea, wysiwygarea, floatingspace, toolbar, autocomplete, textmatch
@bender-include: _helpers/utils.js

1. Place cursor after `2 `.
1. Type `@`.

*Repeat steps above for all 3 editors.*

## Expected

Mention panel should be appeared above cursor.

## Unexpected

Mention panel is not appearing above cursor.

0 comments on commit c359a1c

Please sign in to comment.