[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @editor @editor_tinymce @javascript 2 Feature: Add or remove items from the TinyMCE editor toolbar 3 In order to customize the TinyMCE editor appearance 4 As an admin 5 I need to add and remove items from the toolbar 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C1 | 0 | 11 And I log in as "admin" 12 And I follow "Preferences" in the user menu 13 And I follow "Editor preferences" 14 And I set the field "Text editor" to "TinyMCE HTML editor" 15 And I press "Save changes" 16 And I follow "Home" 17 18 Scenario: Remove icons 19 When the following config values are set as admin: 20 | customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | editor_tinymce | 21 And I am on site homepage 22 And I follow "Course 1" 23 And I turn editing mode on 24 And I add a "Database" to section "1" 25 Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist 26 And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exist 27 And I press "Cancel" 28 29 Scenario: Add icons 30 When the following config values are set as admin: 31 | customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen,anchor | editor_tinymce | 32 And I am on site homepage 33 And I follow "Course 1" 34 And I turn editing mode on 35 And I add a "Database" to section "1" 36 Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist 37 And "#id_introeditor_tbl .mce_anchor" "css_element" should exist 38 And the following config values are set as admin: 39 | customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | editor_tinymce | 40 And I am on site homepage 41 And I follow "Course 1" 42 And I add a "Database" to section "1" 43 And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist 44 And I press "Cancel" 45 46 Scenario: Default icons 47 And I am on site homepage 48 Given I follow "Course 1" 49 And I turn editing mode on 50 When I add a "Database" to section "1" 51 And I wait until "#id_introeditor_tbl" "css_element" exists 52 Then "#id_introeditor_tbl .mce_bold" "css_element" should exist 53 And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist 54 And I press "Cancel"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |