mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-38484_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
18ceea60af
47
course/tests/behat/rename_roles.feature
Normal file
47
course/tests/behat/rename_roles.feature
Normal file
@ -0,0 +1,47 @@
|
||||
@core_course
|
||||
Feature: Rename roles within a course
|
||||
In order to set course roles names according to their responsabilities
|
||||
As a moodle teacher
|
||||
I need to edit the course role names
|
||||
|
||||
@javascript
|
||||
Scenario: Rename roles within a course
|
||||
Given the following "users" exists:
|
||||
| username | firstname | lastname | email |
|
||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||
| teacher2 | Teacher | 2 | teacher2@asd.com |
|
||||
| student1 | Student | 1 | student1@asd.com |
|
||||
And the following "courses" exists:
|
||||
| fullname | shortname | format |
|
||||
| Course 1 | C1 | topics |
|
||||
And the following "course enrolments" exists:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| teacher2 | C1 | teacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
When I follow "Edit settings"
|
||||
And I fill the moodle form with:
|
||||
| Your word for 'Non-editing teacher' | Tutor |
|
||||
| Your word for 'Student' | Learner |
|
||||
And I press "Save changes"
|
||||
And I expand "Switch role to..." node
|
||||
Then I should see "Tutor"
|
||||
And I should see "Learner"
|
||||
And I follow "Participants"
|
||||
And the "roleid" select box should contain "Tutor"
|
||||
And the "roleid" select box should contain "Learner"
|
||||
And the "roleid" select box should not contain "Student"
|
||||
And I follow "Edit settings"
|
||||
And I fill the moodle form with:
|
||||
| Your word for 'Non-editing teacher' | |
|
||||
| Your word for 'Student' | |
|
||||
And I press "Save changes"
|
||||
And I expand "Switch role to..." node
|
||||
And I should see "Teacher"
|
||||
And I should see "Student"
|
||||
And I should not see "Learner"
|
||||
And I follow "Participants"
|
||||
And the "roleid" select box should contain "Non-editing teacher"
|
||||
And the "roleid" select box should contain "Student"
|
Loading…
x
Reference in New Issue
Block a user