Skip to content

Commit

Permalink
Tests: polished manual tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Nov 21, 2017
1 parent 283e43d commit 5be1011
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions tests/plugins/inlinetoolbar/context/manual/complex.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@bender-ui: collapsed
@bender-tags: 4.8.0, feature, inlinetoolbar
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, floatingspace, inlinetoolbar, sourcearea, list, link, elementspath, language,stylescombo, image
@bender-tags: 4.8.0, feature, inlinetoolbar, 933
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, floatingspace, inlinetoolbar, sourcearea, list, link, elementspath, image

## Complex Context Sample

There are several inline toolbar listeners (from highest priority):

1. `strong;em` selection should show `Bold,Underline` buttons.
1. `a[href];img[*]` selection should show `Link,Unlink` buttons.
1. `strong, em` selection should show `Bold,Underline` buttons.
1. `a[href], img` selection should show `Link,Unlink` buttons.
1. `li[*]` selection should show `BulletedList,NumberedList` buttons.

### Sample Test Case

1. Click inside bold text in a list.
1. Click inside of bold text in a list.

#### Expected

Toolbar with `Bold,Underline` is shown, as it has higher priority.
Toolbar with `Bold,Underline` buttons is shown, as it has higher priority.
6 changes: 3 additions & 3 deletions tests/plugins/inlinetoolbar/context/manual/context.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@bender-ui: collapsed
@bender-tags: 4.8.0, feature, inlinetoolbar
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, floatingspace, inlinetoolbar, sourcearea, list, link, elementspath, language, stylescombo
@bender-tags: 4.8.0, feature, inlinetoolbar, 933
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, floatingspace, inlinetoolbar, sourcearea, list, elementspath

## Inline Toolbar Context

Inline toolbar should be shown only selections containing `strong` and `em` in its path.
Inline toolbar should be shown only for selections containing `strong` and `em` in its path.

Example test case:

Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/inlinetoolbar/context/manual/toolbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Put a selection in `Para^graph after the list.`

A toolbar with many buttons is shown on top of the editor.

#### Actual
#### Unexpected

* Toolbar has only 2 buttons.
* Toolbar is displayed over the focused paragraph.
2 changes: 1 addition & 1 deletion tests/plugins/inlinetoolbar/context/manual/widget.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@bender-ui: collapsed
@bender-tags: 4.8.0, feature, inlinetoolbar
@bender-tags: 4.8.0, feature, inlinetoolbar, 933
@bender-ckeditor-plugins: wysiwygarea, basicstyles, floatingspace, inlinetoolbar, sourcearea, link, elementspath, image2, placeholder, codesnippet

## Inline Toolbar with Widgets
Expand Down

0 comments on commit 5be1011

Please sign in to comment.