@@ -19,32 +19,33 @@ Feature: View activity completion information in the questionnaire activity
19
19
And the following "activities" exist:
20
20
| activity | name | introduction | course | idnumber | completion | completionview | completionpostsenabled | completionposts |
21
21
| questionnaire | Test questionnaire completion | Test questionnaire description | C1 | questionnaire2 | 2 | 1 | 1 | 1 |
22
+
23
+ @javascript
24
+ Scenario : Check questionnaire completion feature in web for Moodle ≤ 4.2.
25
+ Given the site is running Moodle version 4.2 or lower
22
26
And I log in as "teacher1"
23
27
And I am on "Course 1" course homepage
24
28
And I follow "Test questionnaire completion"
25
- And I click on "Add questions" "link"
29
+ Then I click on "Add questions" "link"
26
30
And I add a "Yes/No" question and I fill the form with:
27
31
| Question Name | Q1 |
28
32
| Yes | y |
29
33
| Question Text | Are you still in School ? |
34
+ Then I should see "[Yes/No] (Q1)"
30
35
And I add a "Radio Buttons" question and I fill the form with:
31
36
| Question Name | Q2 |
32
37
| Yes | y |
33
38
| Horizontal | Checked |
34
39
| Question Text | Select one choice |
35
40
| Possible answers | 1 =One ,2 =Two ,3 =Three ,4 =Four |
41
+ Then I should see "[Radio Buttons] (Q2)"
36
42
And I add a "Text Box" question and I fill the form with:
37
43
| Question Name | Q8 |
38
44
| No | n |
39
45
| Input box length | 10 |
40
46
| Max . text length | 15 |
41
47
| Question Text | Enter some text |
42
-
43
- @javascript
44
- Scenario : Check questionnaire completion feature in web for Moodle ≤ 4.2.
45
- Given the site is running Moodle version 4.2 or lower
46
- And I log in as "teacher1"
47
- And I am on "Course 1" course homepage
48
+ Then I should see "[Text Box] (Q8)"
48
49
And I am on the "Test questionnaire completion" "questionnaire activity editing" page
49
50
And I set the following fields to these values:
50
51
| Completion tracking | Show activity as complete when conditions are met |
@@ -70,8 +71,30 @@ Feature: View activity completion information in the questionnaire activity
70
71
Given the site is running Moodle version 4.3 or higher
71
72
And I log in as "teacher1"
72
73
And I am on "Course 1" course homepage
74
+ And I follow "Test questionnaire completion"
75
+ Then I click on "Add questions" "link"
76
+ And I add a "Yes/No" question and I fill the form with:
77
+ | Question Name | Q1 |
78
+ | Yes | y |
79
+ | Question Text | Are you still in School ? |
80
+ Then I should see "[Yes/No] (Q1)"
81
+ And I add a "Radio Buttons" question and I fill the form with:
82
+ | Question Name | Q2 |
83
+ | Yes | y |
84
+ | Horizontal | Checked |
85
+ | Question Text | Select one choice |
86
+ | Possible answers | 1 =One ,2 =Two ,3 =Three ,4 =Four |
87
+ Then I should see "[Radio Buttons] (Q2)"
88
+ And I add a "Text Box" question and I fill the form with:
89
+ | Question Name | Q8 |
90
+ | No | n |
91
+ | Input box length | 10 |
92
+ | Max . text length | 15 |
93
+ | Question Text | Enter some text |
94
+ Then I should see "[Text Box] (Q8)"
73
95
And I am on the "Test questionnaire completion" "questionnaire activity editing" page
74
96
And I click on "Expand all" "link" in the "region-main" "region"
97
+ And I set the field "Add requirements" to "1"
75
98
And I set the following fields to these values:
76
99
| Add requirements | 1 |
77
100
| Student must submit this questionnaire to complete it | 1 |
0 commit comments