1- @mod @mod_assign @app @app_upto3.9.4 @ javascript
1+ @mod @mod_assign @app @javascript
22Feature : Test basic usage of assignment activity in app
33 In order to participate in the assignment while using the mobile app
44 I need basic assignment functionality to work
@@ -19,35 +19,34 @@ Feature: Test basic usage of assignment activity in app
1919 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | attemptreopenmethod |
2020 | assign | C1 | assign1 | assignment1 | Test assignment description1 | 1 | 1029844800 | manual |
2121
22- @app @3.8.0
2322 Scenario : View assign description, due date & View list of student submissions (as teacher) & View own submission or student submission
2423 # Create, edit and submit as a student
2524 When I enter the app
2625 And I log in as "student1"
2726 And I press "Course 1" near "Recently accessed courses" in the app
2827 And I press "assignment1" in the app
2928 Then the header should be "assignment1" in the app
30- And I should see "Test assignment description1"
31- And I should see "Due date"
32- And I should see "Tuesday, 20 August 2002, 12:00 PM"
29+ And I should find "Test assignment description1" in the app
30+ And I should find "Due:" in the app
31+ And I should find " 20 August 2002, 12:00 PM" in the app
3332
3433 When I press "Add submission" in the app
3534 And I set the field "Online text submissions" to "Submission test" in the app
3635 And I press "Save" in the app
37- Then I should see "Draft (not submitted)"
38- And I should see "Not graded"
36+ Then I should find "Draft (not submitted)" in the app
37+ And I should find "Not graded" in the app
3938
4039 When I press "Edit submission" in the app
4140 And I set the field "Online text submissions" to "Submission test edited" in the app
4241 And I press "Save" in the app
4342 And I press "OK" in the app
44- Then I should see "Submission test edited"
43+ Then I should find "Submission test edited" in the app
4544
4645 When I press "Submit assignment" in the app
4746 And I press "OK" in the app
48- Then I should see "Submitted for grading"
49- And I should see "Not graded"
50- And I should see "Submission test edited"
47+ Then I should find "Submitted for grading" in the app
48+ And I should find "Not graded" in the app
49+ And I should find "Submission test edited" in the app
5150
5251 # View as a teacher
5352 When I enter the app
@@ -57,14 +56,13 @@ Feature: Test basic usage of assignment activity in app
5756 Then the header should be "assignment1" in the app
5857
5958 When I press "Submitted" in the app
60- Then I should see "Student student"
61- And I should see "Not graded"
59+ Then I should find "Student student" in the app
60+ And I should find "Not graded" in the app
6261
6362 When I press "Student student" near "assignment1" in the app
64- Then I should see "Online text submissions"
65- And I should see "Submission test edited"
63+ Then I should find "Online text submissions" in the app
64+ And I should find "Submission test edited" in the app
6665
67- @app @3.8.0
6866 Scenario : Edit/Add submission (online text) & Add new attempt from previous submission & Submit for grading
6967 # Submit first attempt as a student
7068 Given I enter the app
@@ -86,23 +84,23 @@ Feature: Test basic usage of assignment activity in app
8684 And I press "Student student" near "assignment1" in the app
8785 And I press "Grade" in the app
8886 And I press "Allow another attempt" in the app
89- And I press "Done"
90- Then I should see "Reopened"
91- And I should see "Not graded"
87+ And I press "Done" in the app
88+ Then I should find "Reopened" in the app
89+ And I should find "Not graded" in the app
9290
9391 # Submit second attempt as a student
9492 When I enter the app
9593 And I log in as "student1"
9694 And I press "Course 1" near "Recently accessed courses" in the app
9795 And I press "assignment1" in the app
98- Then I should see "Reopened"
99- And I should see "2 out of Unlimited"
100- And I should see "Add a new attempt based on previous submission"
101- And I should see "Add a new attempt"
96+ Then I should find "Reopened" in the app
97+ And I should find "2 out of Unlimited" in the app
98+ And I should find "Add a new attempt based on previous submission" in the app
99+ And I should find "Add a new attempt" in the app
102100
103101 When I press "Add a new attempt based on previous submission" in the app
104102 And I press "OK" in the app
105- Then I should see "Submission test 1st attempt"
103+ Then I should find "Submission test 1st attempt" in the app
106104
107105 When I set the field "Online text submissions" to "Submission test 2nd attempt" in the app
108106 And I press "Save" in the app
@@ -117,10 +115,9 @@ Feature: Test basic usage of assignment activity in app
117115 And I press "assignment1" in the app
118116 And I press "Participants" in the app
119117 And I press "Student student" near "assignment1" in the app
120- Then I should see "Online text submissions"
121- And I should see "Submission test 2nd attempt"
118+ Then I should find "Online text submissions" in the app
119+ And I should find "Submission test 2nd attempt" in the app
122120
123- @app @3.8.0
124121 Scenario : Add submission offline (online text) & Submit for grading offline & Sync submissions
125122 When I enter the app
126123 And I log in as "student1"
@@ -132,17 +129,16 @@ Feature: Test basic usage of assignment activity in app
132129 And I press "Save" in the app
133130 And I press "Submit assignment" in the app
134131 And I press "OK" in the app
135- Then I should see "This Assignment has offline data to be synchronised."
132+ Then I should find "This Assignment has offline data to be synchronised." in the app
136133
137134 When I switch offline mode to "false"
138135 And I press the back button in the app
139136 And I press "assignment1" in the app
140137 And I press "Display options" in the app
141138 And I press "Refresh" in the app
142- Then I should see "Submitted for grading"
143- But I should not see "This Assignment has offline data to be synchronised."
139+ Then I should find "Submitted for grading" in the app
140+ But I should not find "This Assignment has offline data to be synchronised." in the app
144141
145- @app @3.8.0
146142 Scenario : Edit an offline submission before synchronising it
147143 When I enter the app
148144 And I log in as "student1"
@@ -152,23 +148,23 @@ Feature: Test basic usage of assignment activity in app
152148 And I switch offline mode to "true"
153149 And I set the field "Online text submissions" to "Submission test original offline" in the app
154150 And I press "Save" in the app
155- Then I should see "This Assignment has offline data to be synchronised."
156- And I should see "Submission test original offline"
151+ Then I should find "This Assignment has offline data to be synchronised." in the app
152+ And I should find "Submission test original offline" in the app
157153
158154 When I press "Edit submission" in the app
159155 And I set the field "Online text submissions" to "Submission test edited offline" in the app
160156 And I press "Save" in the app
161- Then I should see "This Assignment has offline data to be synchronised."
162- And I should see "Submission test edited offline"
163- But I should not see "Submission test original offline"
157+ Then I should find "This Assignment has offline data to be synchronised." in the app
158+ And I should find "Submission test edited offline" in the app
159+ But I should not find "Submission test original offline" in the app
164160
165161 When I press "Submit assignment" in the app
166162 And I press "OK" in the app
167- Then I should see "This Assignment has offline data to be synchronised."
163+ Then I should find "This Assignment has offline data to be synchronised." in the app
168164
169165 When I switch offline mode to "false"
170166 And I press the back button in the app
171167 And I press "assignment1" in the app
172- Then I should see "Submitted for grading"
173- And I should see "Submission test edited offline"
174- But I should not see "This Assignment has offline data to be synchronised."
168+ Then I should find "Submitted for grading" in the app
169+ And I should find "Submission test edited offline" in the app
170+ But I should not find "This Assignment has offline data to be synchronised." in the app
0 commit comments