MDL-58265 core_test: replace I turn editing on steps

Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.

Part of MDL-55611 epic.
This commit is contained in:
Simey Lameze 2017-03-15 15:13:09 +08:00 committed by Damyon Wiese
parent 3353cfd8c1
commit fdeeaff954
458 changed files with 1697 additions and 2148 deletions

View file

@ -18,8 +18,7 @@ Feature: Add or remove items from the TinyMCE editor toolbar
Scenario: Remove icons
When the following config values are set as admin:
| customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | editor_tinymce |
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Database" to section "1"
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist
And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exist
@ -28,21 +27,19 @@ Feature: Add or remove items from the TinyMCE editor toolbar
Scenario: Add icons
When the following config values are set as admin:
| customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen,anchor | editor_tinymce |
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Database" to section "1"
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist
And "#id_introeditor_tbl .mce_anchor" "css_element" should exist
And the following config values are set as admin:
| customtoolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | editor_tinymce |
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I add a "Database" to section "1"
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist
And I press "Cancel"
Scenario: Default icons
Given I am on course page "Course 1"
And I turn editing mode on
Given I am on "Course 1" course homepage with editing mode on
When I add a "Database" to section "1"
And I wait until "#id_introeditor_tbl" "css_element" exists
Then "#id_introeditor_tbl .mce_bold" "css_element" should exist