@@ -95,3 +95,24 @@ Feature: Settings form fields disabled if not required
95
95
And the "Each attempt builds on the last" "field" should be enabled
96
96
And the "id_delay1_enabled" "field" should be enabled
97
97
And the "id_delay2_enabled" "field" should be enabled
98
+
99
+ @javascript
100
+ Scenario : Depending on whether there is a close date, some review options are disabled.
101
+ When I add a "Quiz" to section "1"
102
+ And I expand all fieldsets
103
+ And I set the field "Name" to "Test quiz"
104
+ Then the "id_attemptclosed" "checkbox" should be disabled
105
+ Then the "id_correctnessclosed" "checkbox" should be disabled
106
+ Then the "id_marksclosed" "checkbox" should be disabled
107
+ Then the "id_specificfeedbackclosed" "checkbox" should be disabled
108
+ Then the "id_generalfeedbackclosed" "checkbox" should be disabled
109
+ Then the "id_rightanswerclosed" "checkbox" should be disabled
110
+ Then the "id_overallfeedbackclosed" "checkbox" should be disabled
111
+ And I set the field "id_timeclose_enabled" to "1"
112
+ Then the "id_attemptclosed" "checkbox" should be enabled
113
+ Then the "id_correctnessclosed" "checkbox" should be enabled
114
+ Then the "id_marksclosed" "checkbox" should be enabled
115
+ Then the "id_specificfeedbackclosed" "checkbox" should be enabled
116
+ Then the "id_generalfeedbackclosed" "checkbox" should be enabled
117
+ Then the "id_rightanswerclosed" "checkbox" should be enabled
118
+ Then the "id_overallfeedbackclosed" "checkbox" should be enabled
0 commit comments