-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadminsetting_studycodefield.feature
34 lines (32 loc) · 1.73 KB
/
adminsetting_studycodefield.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@mod @mod_offlinequiz @adminsetting @amc
Feature: Within a moodle instance, an administrator should be able to set the value for "Print study code field on question sheet" for the entire Moodle installation.
In order to define the adminsetting of an offline quiz.
As an admin
I need to default values for offline quiz settings.
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | [email protected] |
And the following "courses" exist:
| fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1|
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
@javascript
Scenario: Switch as an admin to the adminsettings of the module offlinequiz and change the value of "Print study code field on question sheet". Then login as a teacher and add a new offline quiz to a course and check whether the default value has changed.
Given I log in as "admin"
And I navigate to "Plugins > Activity modules > Offline Quiz" in site administration
And I set the field "Print study code field on question sheet" to "1"
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I turn editing mode on
And I add a "Offline Quiz" to section "1" and I fill the form with:
| Offline quiz name | Test offline quiz name |
| Description | Add an offline quiz to the current course |
And I follow "Test offline quiz name"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "Print study code field on question sheet" matches value "1"