AutorÃa | Ultima modificación | Ver Log |
@core @core_courseFeature: Rename roles within a courseIn order to set course roles names according to their responsabilitiesAs a teacherI need to edit the course role names@javascriptScenario: Rename roles within a courseGiven the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com || teacher2 | Teacher | 2 | teacher2@example.com || student1 | Student | 1 | student1@example.com |And the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || teacher2 | C1 | teacher || student1 | C1 | student |And I am on the "Course 1" "renameroles" page logged in as "teacher1"And I set the following fields to these values:| Your word for 'Non-editing teacher' | Tutor || Your word for 'Student' | Learner |And I press "Save"And I follow "Switch role to..." in the user menuThen "Tutor" "button" should existAnd "Learner" "button" should existAnd I navigate to course participantsAnd I set the field "type" in the "Filter 1" "fieldset" to "Roles"And I open the autocomplete suggestions list in the "Filter 1" "fieldset"And I should see "Learner (Student)" in the ".form-autocomplete-suggestions" "css_element"And I press the escape keyAnd I set the field "Type or select..." in the "Filter 1" "fieldset" to "Tutor (Non-editing teacher)"And I click on "Student 1's role assignments" "link"And I open the autocomplete suggestions list in the "Student 1" "table_row"And "Tutor (Non-editing teacher)" "autocomplete_suggestions" should existAnd I click on "Cancel" "link"And I press "Enrol users"And the "Assign role" select box should contain "Learner (Student)"And I click on "Cancel" "button" in the "Enrol users" "dialogue"And I am on the "Course 1" "renameroles" pageAnd I set the following fields to these values:| Your word for 'Non-editing teacher' | || Your word for 'Student' | |And I press "Save"And I follow "Switch role to..." in the user menuAnd I should see "Teacher"And "Student" "button" should existAnd "Learner" "button" should not existAnd I navigate to course participantsAnd I set the field "type" in the "Filter 1" "fieldset" to "Roles"And I open the autocomplete suggestions list in the "Filter 1" "fieldset"And I should see "Non-editing teacher" in the ".form-autocomplete-suggestions" "css_element"And I should see "Student" in the ".form-autocomplete-suggestions" "css_element"