1- @mod @mod_courses @app @app_upto3.9.4 @ javascript
1+ @mod @mod_courses @app @javascript
22Feature : Test basic usage of courses in app
33 In order to participate in the courses while using the mobile app
44 As a student
@@ -34,81 +34,77 @@ Feature: Test basic usage of courses in app
3434 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
3535 | assign | C1 | assign1 | assignment | Test assignment description | 1 |
3636
37- @app @3.8.0
3837 Scenario : "Dashboard" tab displayed in >= 3.3 sites
3938 When I enter the app
4039 And I log in as "student1"
4140 Then I should see "Dashboard"
4241 And the header should be "Acceptance test site" in the app
43- And I should see "Course 1"
44- And I should see "Course 2"
45- And I should see "Course 3"
42+ And I should find "Course 1" in the app
43+ And I should find "Course 2" in the app
44+ And I should find "Course 3" in the app
4645
4746 When I press "Site home" in the app
48- Then I should see "Dashboard"
47+ Then I should find "Dashboard" in the app
4948 And the header should be "Acceptance test site" in the app
5049
5150 When I press "Dashboard" in the app
52- Then I should see "Course 1"
53- And I should see "Course 2"
54- And I should see "Course 3"
51+ Then I should find "Course 1" in the app
52+ And I should find "Course 2" in the app
53+ And I should find "Course 3" in the app
5554
56- @app @3.8.0
5755 Scenario : See my courses
5856 When I enter the app
5957 And I log in as "student1"
6058 Then the header should be "Acceptance test site" in the app
61- And I should see "Course 1"
62- And I should see "Course 2"
63- And I should see "Course 3"
59+ And I should find "Course 1" in the app
60+ And I should find "Course 2" in the app
61+ And I should find "Course 3" in the app
6462
6563 When I press "Course 1" near "Recently accessed courses" in the app
66- Then I should see "Choice course 1"
64+ Then I should find "Choice course 1" in the app
6765 And the header should be "Course 1" in the app
6866
6967 When I press "Choice course 1" in the app
70- Then I should see "Test choice description"
68+ Then I should find "Test choice description" in the app
7169 And the header should be "Choice course 1" in the app
7270
7371 When I press the back button in the app
7472 And I press the back button in the app
7573 And I press "Course 2" near "Recently accessed courses" in the app
76- Then I should see "Choice course 2"
74+ Then I should find "Choice course 2" in the app
7775 And the header should be "Course 2" in the app
7876
7977 When I press the back button in the app
8078 And I press "Course 3" near "Recently accessed courses" in the app
81- Then I should see "Choice course 3"
79+ Then I should find "Choice course 3" in the app
8280 And the header should be "Course 3" in the app
8381
84- @app @3.8.0
8582 Scenario : Search for a course
8683 When I enter the app
8784 And I log in as "student1"
8885 And I press "Search courses" in the app
8986 And I set the field "Search" to "Course 4" in the app
90- And I press "Search" in the app
91- Then I should see "Course 4"
87+ And I press "Search" "button" in the app
88+ Then I should find "Course 4" in the app
9289 And the header should be "Search courses" in the app
9390
9491 When I press "Course 4" in the app
95- Then I should see "Course 4"
92+ Then I should find "Course 4" in the app
9693 And the header should be "Course 4" in the app
9794
9895 When I press the back button in the app
9996 And I set the field "Search" to "Course" in the app
100- And I press "Search" in the app
101- Then I should see "Course 1"
102- And I should see "Course 2"
103- And I should see "Course 3"
104- And I should see "Course 4"
97+ And I press "Search" "button" in the app
98+ Then I should find "Course 1" in the app
99+ And I should find "Course 2" in the app
100+ And I should find "Course 3" in the app
101+ And I should find "Course 4" in the app
105102
106- @app @3.8.0
107103 Scenario : Links to actions in Timeline work for teachers/students
108104 # Configure assignment as teacher
109105 When I enter the app
110106 And I log in as "teacher1"
111- Then I should see "Timeline"
107+ Then I should find "Timeline" in the app
112108
113109 Given I press "Course 1" near "Recently accessed courses" in the app
114110 And I press "assignment" in the app
@@ -129,28 +125,28 @@ Feature: Test basic usage of courses in app
129125 And I log in as "student1"
130126 And I press "Add submission" in the app
131127 Then the header should be "assignment" in the app
132- And I should see "Test assignment description"
133- And I should see "No attempt"
134- And I should see "Due date"
128+ And I should find "Test assignment description" in the app
129+ And I should find "No attempt" in the app
130+ And I should find "Due:" in the app
135131
136132 When I press "Add submission" in the app
137133 And I set the field "Online text submissions" to "test" in the app
138134 And I press "Save" in the app
139135 And I press "Submit assignment" in the app
140136 And I press "OK" in the app
141137 Then the header should be "assignment" in the app
142- And I should see "Test assignment description"
143- And I should see "Submitted for grading"
144- And I should see "Due date"
138+ And I should find "Test assignment description" in the app
139+ And I should find "Submitted for grading" in the app
140+ And I should find "Due:" in the app
145141
146142 # Grade assignment as teacher
147143 When I enter the app
148144 And I log in as "teacher1"
149145 And I press "Grade" in the app
150146 Then the header should be "assignment" in the app
151- And I should see "Test assignment description"
152- And I should see "Time remaining"
147+ And I should find "Test assignment description" in the app
148+ And I should find "Time remaining" in the app
153149
154150 When I press "Needs grading" in the app
155- Then I should see "Student student"
156- And I should see "Not graded"
151+ Then I should find "Student student" in the app
152+ And I should find "Not graded" in the app
0 commit comments