芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/course/tests/behat/rename_roles.feature
@core @core_course Feature: Rename roles within a course In order to set course roles names according to their responsabilities As a teacher I need to edit the course role names @javascript Scenario: Rename roles within a course Given 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 log in as "teacher1" And I am on "Course 1" course homepage When I navigate to "Edit settings" in current page administration 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 display" And I follow "Switch role to..." in the user menu Then "Tutor" "button" should exist And "Learner" "button" should exist And I navigate to course participants And I open the autocomplete suggestions list And I should see "Role: Tutor" in the ".form-autocomplete-suggestions" "css_element" And I should see "Role: Learner" in the ".form-autocomplete-suggestions" "css_element" And I should not see "Role: Student" in the ".form-autocomplete-suggestions" "css_element" And I am on "Course 1" course homepage And I navigate to "Edit settings" in current page administration And I set the following fields to these values: | Your word for 'Non-editing teacher' | | | Your word for 'Student' | | And I press "Save and display" And I follow "Switch role to..." in the user menu And I should see "Teacher" And "Student" "button" should exist And "Learner" "button" should not exist And I navigate to course participants And I open the autocomplete suggestions list And I should see "Role: Non-editing teacher" in the ".form-autocomplete-suggestions" "css_element" And I should see "Role: Student" in the ".form-autocomplete-suggestions" "css_element"