@@ -121,3 +121,28 @@ Feature: Review responses
121
121
And I follow "Test questionnaire"
122
122
And I navigate to "View all responses" in current page administration
123
123
Then "//b[text()='One']" "xpath_element" should exist
124
+
125
+ Scenario : Check auto numbering setting in responses
126
+ Given the following "courses" exist:
127
+ | fullname | shortname | category |
128
+ | Course 1 | C1 | 0 |
129
+ And the following "activities" exist:
130
+ | activity | name | description | course | idnumber |
131
+ | questionnaire | Test questionnaire | Test questionnaire description | C1 | questionnaire0 |
132
+ And "Test questionnaire" has questions and responses
133
+ And I am on the "Course 1" "Course" page logged in as "admin"
134
+ And I follow "Test questionnaire"
135
+ When I navigate to "View all responses" in current page administration
136
+ Then ".qn-number" "css_element" should exist
137
+ Given I follow "List of responses"
138
+ When I follow "Admin User"
139
+ Then ".qn-number" "css_element" should exist
140
+ # Check auto numbering not show in response when turned off.
141
+ Given I navigate to "Settings" in current page administration
142
+ And I set the field "Auto numbering" to "Do not number questions or pages"
143
+ And I press "Save and display"
144
+ When I navigate to "View all responses" in current page administration
145
+ Then ".qn-number" "css_element" should not exist
146
+ Given I follow "List of responses"
147
+ When I follow "Admin User"
148
+ Then ".qn-number" "css_element" should not exist
0 commit comments