| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/course/tests/behat/ |
Upload File : |
@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 | [email protected] |
| teacher2 | Teacher | 2 | [email protected] |
| student1 | Student | 1 | [email protected] |
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"