AutorÃa | Ultima modificación | Ver Log |
@core @core_courseFeature: Rename roles in a courseIn order to account for course-level differencesAs a teacherI need to be able to rename rolesBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student || teacher1 | C1 | editingteacher |Scenario: Teacher can rename rolesGiven I am on the "Course 1" "renameroles" page logged in as "teacher1"When I set the following fields to these values:| Your word for 'Teacher' | Lecturer || Your word for 'Student' | Learner |And I press "Save"And I navigate to course participantsThen I should see "Lecturer (Teacher)" in the "Teacher 1" "table_row"And I should see "Learner (Student)" in the "Student 1" "table_row"And I log outAnd I log in as "student1"And I am on "Course 1" course homepageAnd I navigate to course participantsAnd I should see "Lecturer" in the "Teacher 1" "table_row"And I should see "Learner" in the "Student 1" "table_row"And I should not see "Lecturer (Teacher)" in the "Teacher 1" "table_row"And I should not see "Learner (Student)" in the "Student 1" "table_row"Scenario: Ability to rename roles can be preventedGiven the following "role capability" exists:| role | editingteacher || moodle/course:renameroles | inherit |When I log in as "teacher1"And I am on "Course 1" course homepageAnd I navigate to course participantsThen I should not see "Role renaming"