1 |
efrain |
1 |
@core @core_grades @javascript
|
|
|
2 |
Feature: Configurable default grade export method
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given the following "users" exist:
|
|
|
6 |
| username | firstname | lastname | email |
|
|
|
7 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
8 |
And the following "courses" exist:
|
|
|
9 |
| fullname | shortname |
|
|
|
10 |
| Course 1 | C1 |
|
|
|
11 |
And the following "course enrolments" exist:
|
|
|
12 |
| user | course | role |
|
|
|
13 |
| teacher1 | C1 | editingteacher |
|
|
|
14 |
|
|
|
15 |
Scenario: View default grade export method in gradebook
|
|
|
16 |
Given I log in as "teacher1"
|
|
|
17 |
And I am on "Course 1" course homepage
|
|
|
18 |
And I navigate to "More > Export" in the course gradebook
|
|
|
19 |
Then I should see "Export to OpenDocument spreadsheet"
|
|
|
20 |
|
|
|
21 |
Scenario: Changing the default grade export method in gradebook
|
|
|
22 |
Given the following config values are set as admin:
|
|
|
23 |
| gradeexport_default | txt |
|
|
|
24 |
And I log in as "teacher1"
|
|
|
25 |
And I am on "Course 1" course homepage
|
|
|
26 |
And I navigate to "More > Export" in the course gradebook
|
|
|
27 |
Then I should see "Export to Plain text file"
|