Línea 123... |
Línea 123... |
123 |
And I should not see "Repaginate now"
|
123 |
And I should not see "Repaginate now"
|
Línea 124... |
Línea 124... |
124 |
|
124 |
|
125 |
@javascript
|
125 |
@javascript
|
126 |
Scenario: If there are quiz attempts, there is not option to repaginate.
|
126 |
Scenario: If there are quiz attempts, there is not option to repaginate.
|
127 |
Given the following "activities" exist:
|
127 |
Given the following "activities" exist:
|
128 |
| activity | name | intro | course | idnumber |
|
128 |
| activity | name | intro | course | idnumber |
|
- |
|
129 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 |
|
129 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 |
|
130 |
| qbank | Qbank 1 | Qbank for testing | C1 | qbank1 |
|
130 |
And the following "question categories" exist:
|
131 |
And the following "question categories" exist:
|
131 |
| contextlevel | reference | name |
|
132 |
| contextlevel | reference | name |
|
132 |
| Course | C1 | Test questions |
|
133 |
| Activity module | qbank1 | Test questions |
|
133 |
And the following "questions" exist:
|
134 |
And the following "questions" exist:
|
134 |
| questioncategory | qtype | name | questiontext |
|
135 |
| questioncategory | qtype | name | questiontext |
|
135 |
| Test questions | truefalse | TF1 | First question |
|
136 |
| Test questions | truefalse | TF1 | First question |
|
136 |
| Test questions | truefalse | TF2 | Second question |
|
137 |
| Test questions | truefalse | TF2 | Second question |
|
Línea 144... |
Línea 145... |
144 |
| slot | response |
|
145 |
| slot | response |
|
145 |
| 1 | True |
|
146 |
| 1 | True |
|
146 |
And I am on the "Quiz 1" "quiz activity editing" page
|
147 |
And I am on the "Quiz 1" "quiz activity editing" page
|
147 |
And I expand all fieldsets
|
148 |
And I expand all fieldsets
|
148 |
And I should not see "Repaginate now"
|
149 |
And I should not see "Repaginate now"
|
- |
|
150 |
|
- |
|
151 |
@javascript
|
- |
|
152 |
Scenario Outline: Pre-create attempts setting is only shown if precreateperiod is set and timeopen is enabled.
|
- |
|
153 |
Given the following config values are set as admin:
|
- |
|
154 |
| precreateattempts | 1 | quiz |
|
- |
|
155 |
| precreateattempts_locked | 0 | quiz |
|
- |
|
156 |
| precreateperiod | <period> | quiz |
|
- |
|
157 |
And I log in as "admin"
|
- |
|
158 |
When I add a "quiz" activity to course "Course 1" section 1
|
- |
|
159 |
And I click on "Timing" "link"
|
- |
|
160 |
And I set the field "timeopen[enabled]" to "<timeopen>"
|
- |
|
161 |
And I expand all fieldsets
|
- |
|
162 |
Then I <exists> see "Pre-create attempts"
|
- |
|
163 |
And "Pre-create attempts" "select" <exists> be visible
|
- |
|
164 |
And I <exists> see "Yes, 1 hours before quiz open time"
|
- |
|
165 |
|
- |
|
166 |
Examples:
|
- |
|
167 |
| period | timeopen | exists |
|
- |
|
168 |
| 3600 | 1 | should |
|
- |
|
169 |
| 3600 | 0 | should not |
|
- |
|
170 |
| 0 | 1 | should not |
|