mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
50 lines
2 KiB
Gherkin
50 lines
2 KiB
Gherkin
@editor @editor_tinymce
|
|
Feature: Add or remove items from the TinyMCE editor toolbar
|
|
In order to customize the TinyMCE editor appearance
|
|
As a moodle admin
|
|
I need to add and remove items from the toolbar
|
|
|
|
Background:
|
|
Given the following "courses" exists:
|
|
| fullname | shortname | category |
|
|
| Course 1 | C1 | 0 |
|
|
And I log in as "admin"
|
|
|
|
@javascript
|
|
Scenario: Remove icons
|
|
When I set the following administration settings values:
|
|
| Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen |
|
|
And I am on homepage
|
|
And I follow "Course 1"
|
|
And I turn editing mode on
|
|
And I add a "Database" to section "1"
|
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists
|
|
And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exists
|
|
And I press "Cancel"
|
|
|
|
@javascript
|
|
Scenario: Add icons
|
|
When I set the following administration settings values:
|
|
| Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen,anchor |
|
|
And I am on homepage
|
|
And I follow "Course 1"
|
|
And I turn editing mode on
|
|
And I add a "Database" to section "1"
|
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists
|
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should exists
|
|
And I set the following administration settings values:
|
|
| Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen |
|
|
And I am on homepage
|
|
And I follow "Course 1"
|
|
And I add a "Database" to section "1"
|
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists
|
|
And I press "Cancel"
|
|
|
|
@javascript
|
|
Scenario: Default icons
|
|
Given I follow "Course 1"
|
|
And I turn editing mode on
|
|
When I add a "Database" to section "1"
|
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should exists
|
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists
|
|
And I press "Cancel"
|