AutorÃa | Ultima modificación | Ver Log |
@core @core_admin @core_course @javascriptFeature: Reset course indentationIn order to reset indentation in course modulesAs a adminI want change indent value for all the modules of a course format courses in one goBackground:Given the following "courses" exist:| fullname | shortname | format || Sections Course 1 | T1 | topics || Sections Course 2 | T2 | topics || Weekly Course 1 | W1 | weeks || Weekly Course 2 | W2 | weeks |And the following "activities" exist:| activity | name | intro | course | idnumber || forum | Sections forum name | Sections forum description | T1 | forum1 || data | Sections database name | Sections database description | T1 | data1 || wiki | Sections wiki name | Sections wiki description | T2 | wiki1 || forum | Weekly forum name | Weekly forum description | W1 | forum2 || data | Weekly database name | Weekly database description | W1 | data2 || wiki | Weekly wiki name | Weekly wiki description | W2 | wiki2 |And I log in as "admin"And I am on "Sections Course 1" course homepage with editing mode onAnd I open "Sections forum name" actions menuAnd I click on "Move right" "link" in the "Sections forum name" activityAnd I open "Sections forum name" actions menuAnd "Move right" "link" in the "Sections forum name" "activity" should not be visibleAnd "Move left" "link" in the "Sections forum name" "activity" should be visibleAnd I press the escape keyAnd I open "Sections database name" actions menuAnd "Move right" "link" in the "Sections database name" "activity" should be visibleAnd "Move left" "link" in the "Sections database name" "activity" should not be visibleAnd I am on "Sections Course 2" course homepage with editing mode onAnd I open "Sections wiki name" actions menuAnd I click on "Move right" "link" in the "Sections wiki name" activityAnd I open "Sections wiki name" actions menuAnd "Move right" "link" in the "Sections wiki name" "activity" should not be visibleAnd "Move left" "link" in the "Sections wiki name" "activity" should be visibleAnd I am on "Weekly Course 1" course homepage with editing mode onAnd I open "Weekly forum name" actions menuAnd I click on "Move right" "link" in the "Weekly forum name" activityAnd I open "Weekly forum name" actions menuAnd "Move right" "link" in the "Weekly forum name" "activity" should not be visibleAnd "Move left" "link" in the "Weekly forum name" "activity" should be visibleAnd I press the escape keyAnd I open "Weekly database name" actions menuAnd "Move right" "link" in the "Weekly database name" "activity" should be visibleAnd "Move left" "link" in the "Weekly database name" "activity" should not be visibleAnd I am on "Weekly Course 2" course homepage with editing mode onAnd I open "Weekly wiki name" actions menuAnd I click on "Move right" "link" in the "Weekly wiki name" activityAnd I open "Weekly wiki name" actions menuAnd "Move right" "link" in the "Weekly wiki name" "activity" should not be visibleAnd "Move left" "link" in the "Weekly wiki name" "activity" should be visibleScenario Outline: Apply course indentation resetGiven I navigate to "Plugins > Course formats > <format>" in site administrationAnd I wait "5" secondsAnd "Reset indentation sitewide" "link" should existWhen I click on "Reset indentation sitewide" "link"And I should see "Reset indentation sitewide"And "Reset indentation sitewide" "button" should existAnd I click on "Reset indentation sitewide" "button"Then I should see "Indentation reset."And I am on "<prefix> Course 1" course homepage with editing mode onAnd I open "<prefix> forum name" actions menuAnd "Move right" "link" in the "<prefix> forum name" "activity" should be visibleAnd "Move left" "link" in the "<prefix> forum name" "activity" should not be visibleAnd I press the escape keyAnd I open "<prefix> database name" actions menuAnd "Move right" "link" in the "<prefix> database name" "activity" should be visibleAnd "Move left" "link" in the "<prefix> database name" "activity" should not be visibleAnd I am on "<prefix> Course 2" course homepage with editing mode onAnd I open "<prefix> wiki name" actions menuAnd "Move right" "link" in the "<prefix> wiki name" "activity" should be visibleAnd "Move left" "link" in the "<prefix> wiki name" "activity" should not be visible# Check other course formats had not been resetAnd I am on "<other> Course 1" course homepage with editing mode onAnd I open "<other> forum name" actions menuAnd "Move right" "link" in the "<other> forum name" "activity" should not be visibleAnd "Move left" "link" in the "<other> forum name" "activity" should be visibleExamples:| format | prefix | other || Custom sections | Sections | Weekly || Weekly sections | Weekly | Sections |Scenario Outline: Cancel course indentation resetGiven I navigate to "Plugins > Course formats > <format>" in site administrationAnd "Reset indentation sitewide" "link" should existWhen I click on "Reset indentation sitewide" "link"And I should see "Reset indentation sitewide"And "Reset indentation sitewide" "button" should existAnd "Cancel" "button" should existAnd I click on "Cancel" "button"Then I should not see "Indentation reset."And I am on "<prefix> Course 1" course homepage with editing mode onAnd I open "<prefix> forum name" actions menuAnd "Move right" "link" in the "<prefix> forum name" "activity" should not be visibleAnd "Move left" "link" in the "<prefix> forum name" "activity" should be visibleAnd I press the escape keyAnd I open "<prefix> database name" actions menuAnd "Move right" "link" in the "<prefix> database name" "activity" should be visibleAnd "Move left" "link" in the "<prefix> database name" "activity" should not be visibleAnd I am on "<prefix> Course 2" course homepage with editing mode onAnd I open "<prefix> wiki name" actions menuAnd "Move right" "link" in the "<prefix> wiki name" "activity" should not be visibleAnd "Move left" "link" in the "<prefix> wiki name" "activity" should be visibleExamples:| format | prefix || Custom sections | Sections || Weekly sections | Weekly |