@@ -19,32 +19,33 @@ Feature: View activity completion information in the questionnaire activity
1919 And the following "activities" exist:
2020 | activity | name | introduction | course | idnumber | completion | completionview | completionpostsenabled | completionposts |
2121 | 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
2226 And I log in as "teacher1"
2327 And I am on "Course 1" course homepage
2428 And I follow "Test questionnaire completion"
25- And I click on "Add questions" "link"
29+ Then I click on "Add questions" "link"
2630 And I add a "Yes/No" question and I fill the form with:
2731 | Question Name | Q1 |
2832 | Yes | y |
2933 | Question Text | Are you still in School ? |
34+ Then I should see "[Yes/No] (Q1)"
3035 And I add a "Radio Buttons" question and I fill the form with:
3136 | Question Name | Q2 |
3237 | Yes | y |
3338 | Horizontal | Checked |
3439 | Question Text | Select one choice |
3540 | Possible answers | 1 =One ,2 =Two ,3 =Three ,4 =Four |
41+ Then I should see "[Radio Buttons] (Q2)"
3642 And I add a "Text Box" question and I fill the form with:
3743 | Question Name | Q8 |
3844 | No | n |
3945 | Input box length | 10 |
4046 | Max . text length | 15 |
4147 | 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)"
4849 And I am on the "Test questionnaire completion" "questionnaire activity editing" page
4950 And I set the following fields to these values:
5051 | Completion tracking | Show activity as complete when conditions are met |
@@ -70,8 +71,30 @@ Feature: View activity completion information in the questionnaire activity
7071 Given the site is running Moodle version 4.3 or higher
7172 And I log in as "teacher1"
7273 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)"
7395 And I am on the "Test questionnaire completion" "questionnaire activity editing" page
7496 And I click on "Expand all" "link" in the "region-main" "region"
97+ And I set the field "Add requirements" to "1"
7598 And I set the following fields to these values:
7699 | Add requirements | 1 |
77100 | Student must submit this questionnaire to complete it | 1 |
0 commit comments