1 |
efrain |
1 |
@mod @mod_assign
|
|
|
2 |
Feature: Switch role does not cause an error message in assignsubmission_comments
|
|
|
3 |
|
|
|
4 |
Scenario: I switch role to student and an error doesn't occur
|
|
|
5 |
Given the following "courses" exist:
|
|
|
6 |
| fullname | shortname |
|
|
|
7 |
| Course 1 | C1 |
|
|
|
8 |
And the following "users" exist:
|
|
|
9 |
| username |
|
|
|
10 |
| teacher1 |
|
|
|
11 |
And the following "course enrolments" exist:
|
|
|
12 |
| course | user | role |
|
|
|
13 |
| C1 | teacher1 | editingteacher |
|
|
|
14 |
And the following "activities" exist:
|
|
|
15 |
| activity | course | idnumber | name | intro | teamsubmission |
|
|
|
16 |
| assign | C1 | a1 | Test assignment one | This is the description text | 1 |
|
|
|
17 |
And the following "activity" exists:
|
|
|
18 |
| activity | assign |
|
|
|
19 |
| idnumber | ass1 |
|
|
|
20 |
| course | C1 |
|
|
|
21 |
| name | Test assignment |
|
|
|
22 |
| intro | This is the description text |
|
|
|
23 |
| teamsubmission | 1 |
|
|
|
24 |
| submissiondrafts | 0 |
|
|
|
25 |
And I am on the "C1" Course page logged in as teacher1
|
|
|
26 |
When I follow "Switch role to..." in the user menu
|
|
|
27 |
And I press "Student"
|
|
|
28 |
And I follow "Test assignment"
|
|
|
29 |
Then I should see "This is the description text"
|