1- @mod @mod_quiz @app @app_upto3.9.4 @ javascript
1+ @mod @mod_quiz @app @javascript
22Feature : Attempt a quiz in app
33 As a student
44 In order to demonstrate what I know
@@ -42,7 +42,7 @@ Feature: Attempt a quiz in app
4242 | Test questions | shortanswer | TF4 | Text of the second question |
4343 | Test questions | numerical | TF5 | Text of the third question |
4444 | Test questions | essay | TF6 | Text of the fourth question |
45- | Test questions | ddwtos | TF7 | Text of the fifth question |
45+ | Test questions | ddwtos | TF7 | The [[ 1 ]] brown [[ 2 ]] jumped over the [[ 3 ]] dog . |
4646 | Test questions | truefalse | TF8 | Text of the sixth question |
4747 | Test questions | match | TF9 | Text of the seventh question |
4848 And quiz "Quiz 2" contains the following questions:
@@ -55,60 +55,58 @@ Feature: Attempt a quiz in app
5555 | TF8 | 6 |
5656 | TF9 | 7 |
5757
58- @app @3.8.0
5958 Scenario : View a quiz entry page (attempts, status, etc.)
6059 When I enter the app
6160 And I log in as "student1"
6261 And I press "Course 1" near "Course overview" in the app
6362 And I press "Quiz 1" in the app
6463 And I press "Attempt quiz now" in the app
65- Then I should see "Text of the first question"
66- But I should not see "Text of the second question"
64+ Then I should find "Text of the first question" in the app
65+ But I should not find "Text of the second question" in the app
6766
6867 When I press "Next" near "Question 1" in the app
69- Then I should see "Text of the second question"
70- But I should not see "Text of the first question"
68+ Then I should find "Text of the second question" in the app
69+ But I should not find "Text of the first question" in the app
7170
7271 When I press "Previous" near "Question 2" in the app
73- Then I should see "Text of the first question"
74- But I should not see "Text of the second question"
72+ Then I should find "Text of the first question" in the app
73+ But I should not find "Text of the second question" in the app
7574
7675 When I press "Next" near "Quiz 1" in the app
77- Then I should see "Text of the second question"
78- But I should not see "Text of the first question"
76+ Then I should find "Text of the second question" in the app
77+ But I should not find "Text of the first question" in the app
7978
8079 When I press "Previous" near "Quiz 1" in the app
81- Then I should see "Text of the first question"
82- But I should not see "Text of the second question"
80+ Then I should find "Text of the first question" in the app
81+ But I should not find "Text of the second question" in the app
8382
8483 When I press "Next" near "Question 1" in the app
8584 And I press "Next" near "Quiz 1" in the app
86- Then I should see "Summary of attempt"
85+ Then I should find "Summary of attempt" in the app
8786
8887 When I press "Return to attempt" in the app
89- Then I should see "Text of the second question"
90- But I should not see "Text of the first question"
88+ Then I should find "Text of the second question" in the app
89+ But I should not find "Text of the first question" in the app
9190
9291 When I press "Next" in the app
9392 And I press "Submit all and finish" in the app
94- Then I should see "Once you submit"
93+ Then I should find "Once you submit" in the app
9594
9695 When I press "Cancel" near "Once you submit" in the app
97- Then I should see "Summary of attempt"
96+ Then I should find "Summary of attempt" in the app
9897
9998 When I press "Submit all and finish" in the app
10099 And I press "OK" near "Once you submit" in the app
101- Then I should see "Review of attempt 1"
102- And I should see "Started on"
103- And I should see "State"
104- And I should see "Completed on"
105- And I should see "Time taken"
106- And I should see "Marks"
107- And I should see "Grade"
108- And I should see "Question 1"
109- And I should see "Question 2"
100+ Then I should find "Review of attempt 1" in the app
101+ And I should find "Started on" in the app
102+ And I should find "State" in the app
103+ And I should find "Completed on" in the app
104+ And I should find "Time taken" in the app
105+ And I should find "Marks" in the app
106+ And I should find "Grade" in the app
107+ And I should find "Question 1" in the app
108+ And I should find "Question 2" in the app
110109
111- @app @3.8.0
112110 Scenario : Attempt a quiz (all question types)
113111 When I enter the app
114112 And I log in as "student1"
@@ -117,31 +115,37 @@ Feature: Attempt a quiz in app
117115 And I press "Attempt quiz now" in the app
118116 And I press "Four" in the app
119117 And I press "Three" in the app
120- And I press "Next" near "Question 1 " in the app
118+ And I press "Next" "ion-button" near "Quiz 2 " in the app
121119 And I set the field "Answer" to "testing" in the app
122- And I press "Next" near "Question 2" in the app
120+ And I press "Next" "ion-button" near "Question 2" in the app
123121 And I set the field "Answer" to "5" in the app
124- And I press "Next" near "Question 3" in the app
122+ And I press "Next" "ion-button" near "Question 3" in the app
125123 And I set the field "Answer" to "Testing an essay" in the app
126- And I press "Next" near "Question 4" in the app
127- And I press "lazy" in the app
128- And I press "Next" near "Question 5" in the app
124+ And I press "Next" "ion-button" near "Question 4" in the app
125+ And I press "quick" ".drag" in the app
126+ And I press "" ".place1.drop" in the app
127+ And I press "fox" ".drag" in the app
128+ And I press "" ".place2.drop" in the app
129+ And I press "lazy" ".drag" in the app
130+ And I press "" ".place3.drop" in the app
131+ And I press "Next" "ion-button" near "Question 5" in the app
129132 And I press "True" in the app
130- And I press "Next" near "Question 6" in the app
131- And I press "Choose..." near " frog" in the app
133+ And I press "Next" "ion-button" near "Question 6" in the app
134+ And I press "Choose... , frog" in the app
132135 And I press "amphibian" in the app
133- And I press "Choose..." near " newt" in the app
136+ And I press "Choose... , newt" in the app
134137 And I press "insect" in the app
135- And I press "Choose..." near " cat" in the app
138+ And I press "Choose... , cat" in the app
136139 And I press "mammal" in the app
137- And I press "Next" near "Question 7" in the app
138- And I press "Submit all and finish" in the app
140+ And I press "Next" "ion-button" near "Question 7" in the app
141+ Then I should not find "Not yet answered" in the app
142+
143+ When I press "Submit all and finish" in the app
139144 And I press "OK" in the app
140- Then I should see "Review of attempt 1"
141- And I should see "Finished"
142- And I should see "Not yet graded"
145+ Then I should find "Review of attempt 1" in the app
146+ And I should find "Finished" in the app
147+ And I should find "Not yet graded" in the app
143148
144- @app @3.8.0
145149 Scenario : Submit a quiz & Review a quiz attempt
146150 When I enter the app
147151 And I log in as "student1"
@@ -154,7 +158,7 @@ Feature: Attempt a quiz in app
154158 And I press "Next" near "Question 2" in the app
155159 And I press "Submit all and finish" in the app
156160 And I press "OK" in the app
157- Then I should see "Review of attempt 1"
161+ Then I should find "Review of attempt 1" in the app
158162
159163 When I enter the app
160164 And I log in as "teacher1"
0 commit comments