Línea 20... |
Línea 20... |
20 |
| enablemoodlenet | 0 | tool_moodlenet |
|
20 |
| enablemoodlenet | 0 | tool_moodlenet |
|
21 |
And I log in as "teacher"
|
21 |
And I log in as "teacher"
|
22 |
And I am on "Course" course homepage with editing mode on
|
22 |
And I am on "Course" course homepage with editing mode on
|
Línea 23... |
Línea 23... |
23 |
|
23 |
|
24 |
Scenario: The available activities are displayed to the teacher in the activity chooser
|
24 |
Scenario: The available activities are displayed to the teacher in the activity chooser
|
25 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
25 |
Given I open the activity chooser
|
26 |
Then I should see "Add an activity or resource" in the ".modal-title" "css_element"
|
26 |
Then I should see "Add an activity or resource" in the ".modal-title" "css_element"
|
Línea 27... |
Línea 27... |
27 |
And I should see "Assignment" in the ".modal-body" "css_element"
|
27 |
And I should see "Assignment" in the ".modal-body" "css_element"
|
28 |
|
28 |
|
29 |
Scenario: The teacher can choose to add an activity from the activity items in the activity chooser
|
29 |
Scenario: The teacher can choose to add an activity from the activity items in the activity chooser
|
30 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
30 |
Given I open the activity chooser
|
31 |
When I click on "Add a new Assignment" "link" in the "Add an activity or resource" "dialogue"
|
31 |
When I click on "Add a new Assignment" "link" in the "Add an activity or resource" "dialogue"
|
32 |
Then I should see "New Assignment"
|
32 |
Then I should see "New Assignment"
|
33 |
And I set the following fields to these values:
|
33 |
And I set the following fields to these values:
|
34 |
| Assignment name | Test Assignment |
|
34 |
| Assignment name | Test Assignment |
|
Línea 35... |
Línea 35... |
35 |
And I press "Save and return to course"
|
35 |
And I press "Save and return to course"
|
36 |
Then I should see "Test Assignment" in the "New section" "section"
|
36 |
Then I should see "Test Assignment" in the "General" "section"
|
37 |
|
37 |
|
38 |
Scenario: The teacher can choose to add an activity from the activity summary in the activity chooser
|
38 |
Scenario: The teacher can choose to add an activity from the activity summary in the activity chooser
|
39 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
39 |
Given I open the activity chooser
|
Línea 40... |
Línea 40... |
40 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
40 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
41 |
When I click on "Add a new Assignment" "link" in the "help" "core_course > Activity chooser screen"
|
41 |
When I click on "Add a new Assignment" "link" in the "help" "core_course > Activity chooser screen"
|
42 |
Then I should see "New Assignment"
|
42 |
Then I should see "New Assignment"
|
43 |
|
43 |
|
44 |
Scenario: Show summary
|
44 |
Scenario: Show summary
|
45 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
45 |
Given I open the activity chooser
|
46 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
46 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
- |
|
47 |
Then I should see "Assignment" in the "help" "core_course > Activity chooser screen"
|
47 |
Then I should see "Assignment" in the "help" "core_course > Activity chooser screen"
|
48 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback."
|
48 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback."
|
49 |
# Confirm show summary also works for weekly format course
|
49 |
# Confirm show summary also works for weekly format course
|
50 |
And I am on "C2" course homepage with editing mode on
|
50 |
And I am on "C2" course homepage with editing mode on
|
51 |
And I click on "Add content" "button" in the "13 January - 19 January" "section"
|
Línea 51... |
Línea 52... |
51 |
And I click on "Add an activity or resource" "button" in the "13 January - 19 January" "section"
|
52 |
And I click on "Activity or resource" "button" in the "13 January - 19 January" "section"
|
52 |
And I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
53 |
And I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
53 |
And I should see "Assignment" in the "help" "core_course > Activity chooser screen"
|
54 |
And I should see "Assignment" in the "help" "core_course > Activity chooser screen"
|
54 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback."
|
55 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback."
|
55 |
|
56 |
|
56 |
Scenario: Hide summary
|
57 |
Scenario: Hide summary
|
57 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
58 |
Given I open the activity chooser
|
58 |
When I click on "Information about the Assignment activity" "button" in the "modules" "core_course > Activity chooser screen"
|
59 |
When I click on "Information about the Assignment activity" "button" in the "modules" "core_course > Activity chooser screen"
|
59 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "help" "core_course > Activity chooser screen"
|
60 |
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "help" "core_course > Activity chooser screen"
|
60 |
And I should see "Back" in the "help" "core_course > Activity chooser screen"
|
61 |
And I should see "Back" in the "help" "core_course > Activity chooser screen"
|
61 |
When I click on "Back" "button" in the "help" "core_course > Activity chooser screen"
|
62 |
When I click on "Back" "button" in the "help" "core_course > Activity chooser screen"
|
62 |
Then "modules" "core_course > Activity chooser screen" should be visible
|
63 |
Then "modules" "core_course > Activity chooser screen" should be visible
|
- |
|
64 |
And "help" "core_course > Activity chooser screen" should not be visible
|
63 |
And "help" "core_course > Activity chooser screen" should not be visible
|
65 |
And "Back" "button" should not exist in the "modules" "core_course > Activity chooser screen"
|
64 |
And "Back" "button" should not exist in the "modules" "core_course > Activity chooser screen"
|
66 |
And I should not see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "Add an activity or resource" "dialogue"
|
65 |
And I should not see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "Add an activity or resource" "dialogue"
|
67 |
# Confirm hide summary also works for weekly format course
|
66 |
# Confirm hide summary also works for weekly format course
|
68 |
And I am on "C2" course homepage with editing mode on
|
67 |
And I am on "C2" course homepage with editing mode on
|
69 |
And I click on "Add content" "button" in the "13 January - 19 January" "section"
|
68 |
And I click on "Add an activity or resource" "button" in the "13 January - 19 January" "section"
|
70 |
And I click on "Activity or resource" "button" in the "13 January - 19 January" "section"
|
Línea 102... |
Línea 104... |
102 |
Given I open the activity chooser
|
104 |
Given I open the activity chooser
|
103 |
And I click on "Star Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
105 |
And I click on "Star Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
104 |
And I click on "Star Forum activity" "button" in the "Add an activity or resource" "dialogue"
|
106 |
And I click on "Star Forum activity" "button" in the "Add an activity or resource" "dialogue"
|
105 |
And I should see "Starred" in the "Add an activity or resource" "dialogue"
|
107 |
And I should see "Starred" in the "Add an activity or resource" "dialogue"
|
106 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
108 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
- |
|
109 |
And I click on "Add content" "button" in the "New section" "section"
|
107 |
When I click on "Add an activity or resource" "button" in the "New section" "section"
|
110 |
And I click on "Activity or resource" "button" in the "New section" "section"
|
108 |
And I click on "Starred" "link" in the "Add an activity or resource" "dialogue"
|
111 |
And I click on "Starred" "link" in the "Add an activity or resource" "dialogue"
|
109 |
Then I should see "Forum" in the "favourites" "core_course > Activity chooser tab"
|
112 |
Then I should see "Forum" in the "favourites" "core_course > Activity chooser tab"
|
Línea 110... |
Línea 113... |
110 |
|
113 |
|
111 |
Scenario: Add a favourite and then remove it whilst checking the tabs work as expected
|
114 |
Scenario: Add a favourite and then remove it whilst checking the tabs work as expected
|
Línea 114... |
Línea 117... |
114 |
And I click on "Starred" "link" in the "Add an activity or resource" "dialogue"
|
117 |
And I click on "Starred" "link" in the "Add an activity or resource" "dialogue"
|
115 |
And I click on "Star Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
118 |
And I click on "Star Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
116 |
Then I should not see "Starred" in the "Add an activity or resource" "dialogue"
|
119 |
Then I should not see "Starred" in the "Add an activity or resource" "dialogue"
|
Línea 117... |
Línea 120... |
117 |
|
120 |
|
118 |
Scenario: The teacher can search for an activity by it's name
|
121 |
Scenario: The teacher can search for an activity by it's name
|
119 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
122 |
Given I open the activity chooser
|
120 |
When I set the field "search" to "Lesson"
|
123 |
When I set the field "search" to "Lesson"
|
121 |
Then I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
124 |
Then I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
Línea 122... |
Línea 125... |
122 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
125 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
Línea 126... |
Línea 129... |
126 |
When I set the field "search" to "The lesson activity module enables a teacher to deliver content"
|
129 |
When I set the field "search" to "The lesson activity module enables a teacher to deliver content"
|
127 |
Then I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
130 |
Then I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
128 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
131 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
Línea 129... |
Línea 132... |
129 |
|
132 |
|
130 |
Scenario: Search results are not returned if the search query does not match any activity name or description
|
133 |
Scenario: Search results are not returned if the search query does not match any activity name or description
|
131 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
134 |
Given I open the activity chooser
|
132 |
When I set the field "search" to "Random search query"
|
135 |
When I set the field "search" to "Random search query"
|
133 |
Then I should see "0 results found" in the "Add an activity or resource" "dialogue"
|
136 |
Then I should see "0 results found" in the "Add an activity or resource" "dialogue"
|
Línea 134... |
Línea 137... |
134 |
And ".option" "css_element" should not exist in the ".searchresultitemscontainer" "css_element"
|
137 |
And ".option" "css_element" should not exist in the ".searchresultitemscontainer" "css_element"
|
135 |
|
138 |
|
136 |
Scenario: Teacher can return to the default activity chooser state by manually removing the search query
|
139 |
Scenario: Teacher can return to the default activity chooser state by manually removing the search query
|
137 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
140 |
Given I open the activity chooser
|
138 |
And I set the field "search" to "Lesson"
|
141 |
And I set the field "search" to "Lesson"
|
139 |
And I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
142 |
And I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
140 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
143 |
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
141 |
When I set the field "search" to ""
|
144 |
When I set the field "search" to ""
|
142 |
And I should not see "1 results found" in the "Add an activity or resource" "dialogue"
|
145 |
And I should not see "1 results found" in the "Add an activity or resource" "dialogue"
|
Línea 143... |
Línea 146... |
143 |
Then ".searchresultscontainer" "css_element" should not be visible
|
146 |
Then ".searchresultscontainer" "css_element" should not be visible
|
144 |
And ".optionscontainer" "css_element" should exist
|
147 |
And ".optionscontainer" "css_element" should exist
|
145 |
|
148 |
|
Línea 146... |
Línea 149... |
146 |
Scenario: Teacher can not see a "clear" button if a search query is not entered in the activity chooser search bar
|
149 |
Scenario: Teacher can not see a "clear" button if a search query is not entered in the activity chooser search bar
|
147 |
When I click on "Add an activity or resource" "button" in the "New section" "section"
|
150 |
When I open the activity chooser
|
148 |
Then "Clear search input" "button" should not be visible
|
151 |
Then "Clear search input" "button" should not be visible
|
149 |
|
152 |
|
Línea 150... |
Línea 153... |
150 |
Scenario: Teacher can see a "clear" button after entering a search query in the activity chooser search bar
|
153 |
Scenario: Teacher can see a "clear" button after entering a search query in the activity chooser search bar
|
151 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
154 |
Given I open the activity chooser
|
152 |
When I set the field "search" to "Search query"
|
155 |
When I set the field "search" to "Search query"
|
153 |
Then "Clear search input" "button" should not be visible
|
156 |
Then "Clear search input" "button" should not be visible
|
154 |
|
157 |
|
155 |
Scenario: Teacher can not see a "clear" button if the search query is removed in the activity chooser search bar
|
158 |
Scenario: Teacher can not see a "clear" button if the search query is removed in the activity chooser search bar
|
156 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
159 |
Given I open the activity chooser
|
157 |
And I set the field "search" to "Search query"
|
160 |
And I set the field "search" to "Search query"
|
Línea 158... |
Línea 161... |
158 |
And "Clear search input" "button" should exist
|
161 |
And "Clear search input" "button" should exist
|
159 |
When I set the field "search" to ""
|
162 |
When I set the field "search" to ""
|
160 |
# Waiting for the animation to hide the button to finish.
|
163 |
# Waiting for the animation to hide the button to finish.
|
161 |
And I wait "1" seconds
|
164 |
And I wait "1" seconds
|
162 |
Then "Clear search input" "button" should not be visible
|
165 |
Then "Clear search input" "button" should not be visible
|
163 |
|
166 |
|
164 |
Scenario: Teacher can instantly remove the search query from the activity search bar by clicking on the "clear" button
|
167 |
Scenario: Teacher can instantly remove the search query from the activity search bar by clicking on the "clear" button
|
165 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
168 |
Given I open the activity chooser
|
Línea 166... |
Línea 169... |
166 |
And I set the field "search" to "Search query"
|
169 |
And I set the field "search" to "Search query"
|
167 |
And I should see "results found" in the "Add an activity or resource" "dialogue"
|
170 |
And I should see "results found" in the "Add an activity or resource" "dialogue"
|
168 |
When I click on "Clear search input" "button"
|
171 |
When I click on "Clear search input" "button"
|
169 |
Then I should not see "Search query"
|
172 |
Then I should not see "Search query"
|
170 |
And ".searchresultscontainer" "css_element" should not be visible
|
173 |
And ".searchresultscontainer" "css_element" should not be visible
|
171 |
And ".optionscontainer" "css_element" should exist
|
174 |
And ".optionscontainer" "css_element" should exist
|
172 |
|
175 |
|
Línea 186... |
Línea 189... |
186 |
And I select "Starred, All, Recommended" from the "Activity chooser tabs" singleselect
|
189 |
And I select "Starred, All, Recommended" from the "Activity chooser tabs" singleselect
|
187 |
And I press "Save changes"
|
190 |
And I press "Save changes"
|
188 |
And I log out
|
191 |
And I log out
|
189 |
And I log in as "teacher"
|
192 |
And I log in as "teacher"
|
190 |
And I am on "Course" course homepage with editing mode on
|
193 |
And I am on "Course" course homepage with editing mode on
|
191 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
194 |
And I open the activity chooser
|
192 |
Then I should not see "Activities" in the "Add an activity or resource" "dialogue"
|
195 |
Then I should not see "Activities" in the "Add an activity or resource" "dialogue"
|
193 |
And I should not see "Resources" in the "Add an activity or resource" "dialogue"
|
196 |
And I should not see "Resources" in the "Add an activity or resource" "dialogue"
|
Línea 194... |
Línea 197... |
194 |
|
197 |
|
195 |
Scenario: Teacher gets the final case for the Activity Chooser tab mode
|
198 |
Scenario: Teacher gets the final case for the Activity Chooser tab mode
|
Línea 200... |
Línea 203... |
200 |
And I select "Starred, Activities, Resources, Recommended" from the "Activity chooser tabs" singleselect
|
203 |
And I select "Starred, Activities, Resources, Recommended" from the "Activity chooser tabs" singleselect
|
201 |
And I press "Save changes"
|
204 |
And I press "Save changes"
|
202 |
And I log out
|
205 |
And I log out
|
203 |
And I log in as "teacher"
|
206 |
And I log in as "teacher"
|
204 |
And I am on "Course" course homepage with editing mode on
|
207 |
And I am on "Course" course homepage with editing mode on
|
205 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
208 |
And I open the activity chooser
|
206 |
Then I should not see "All" in the "Add an activity or resource" "dialogue"
|
209 |
Then I should not see "All" in the "Add an activity or resource" "dialogue"
|
207 |
And I should see "Activities" in the "Add an activity or resource" "dialogue"
|
210 |
And I should see "Activities" in the "Add an activity or resource" "dialogue"
|
208 |
And I should see "Resources" in the "Add an activity or resource" "dialogue"
|
211 |
And I should see "Resources" in the "Add an activity or resource" "dialogue"
|
Línea 209... |
Línea 212... |
209 |
|
212 |
|
Línea 216... |
Línea 219... |
216 |
# 3 = Starred, Recommended, All, Activities, Resources
|
219 |
# 3 = Starred, Recommended, All, Activities, Resources
|
217 |
| activitychoosertabmode | 3 |
|
220 |
| activitychoosertabmode | 3 |
|
218 |
And I log out
|
221 |
And I log out
|
219 |
And I log in as "teacher"
|
222 |
And I log in as "teacher"
|
220 |
And I am on "Course" course homepage with editing mode on
|
223 |
And I am on "Course" course homepage with editing mode on
|
221 |
When I click on "Add an activity or resource" "button" in the "New section" "section"
|
224 |
When I open the activity chooser
|
222 |
Then "Recommended" "link" should appear before "All" "link" in the "Add an activity or resource" "dialogue"
|
225 |
Then "Recommended" "link" should appear before "All" "link" in the "Add an activity or resource" "dialogue"
|
223 |
But the following config values are set as admin:
|
226 |
But the following config values are set as admin:
|
224 |
# 0 = Starred, All, Activities, Resources, Recommended
|
227 |
# 0 = Starred, All, Activities, Resources, Recommended
|
225 |
| activitychoosertabmode | 0 |
|
228 |
| activitychoosertabmode | 0 |
|
226 |
And I reload the page
|
229 |
And I reload the page
|
227 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
230 |
And I open the activity chooser
|
228 |
And "Recommended" "link" should appear after "Resources" "link" in the "Add an activity or resource" "dialogue"
|
231 |
And "Recommended" "link" should appear after "Resources" "link" in the "Add an activity or resource" "dialogue"
|
229 |
But the following config values are set as admin:
|
232 |
But the following config values are set as admin:
|
230 |
# 1 = Starred, All, Recommended
|
233 |
# 1 = Starred, All, Recommended
|
231 |
| activitychoosertabmode | 1 |
|
234 |
| activitychoosertabmode | 1 |
|
232 |
And I reload the page
|
235 |
And I reload the page
|
233 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
236 |
And I open the activity chooser
|
234 |
And "Recommended" "link" should appear after "All" "link" in the "Add an activity or resource" "dialogue"
|
237 |
And "Recommended" "link" should appear after "All" "link" in the "Add an activity or resource" "dialogue"
|
235 |
But the following config values are set as admin:
|
238 |
But the following config values are set as admin:
|
236 |
# 2 = Starred, Activities, Resources, Recommended
|
239 |
# 2 = Starred, Activities, Resources, Recommended
|
237 |
| activitychoosertabmode | 2 |
|
240 |
| activitychoosertabmode | 2 |
|
238 |
And I reload the page
|
241 |
And I reload the page
|
239 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
242 |
And I open the activity chooser
|
240 |
And "Recommended" "link" should appear after "Resources" "link" in the "Add an activity or resource" "dialogue"
|
243 |
And "Recommended" "link" should appear after "Resources" "link" in the "Add an activity or resource" "dialogue"
|
241 |
But the following config values are set as admin:
|
244 |
But the following config values are set as admin:
|
242 |
# 4 = Starred, Recommended, All
|
245 |
# 4 = Starred, Recommended, All
|
243 |
| activitychoosertabmode | 4 |
|
246 |
| activitychoosertabmode | 4 |
|
244 |
And I reload the page
|
247 |
And I reload the page
|
245 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
248 |
And I open the activity chooser
|
246 |
And "Recommended" "link" should appear before "All" "link" in the "Add an activity or resource" "dialogue"
|
249 |
And "Recommended" "link" should appear before "All" "link" in the "Add an activity or resource" "dialogue"
|
247 |
But the following config values are set as admin:
|
250 |
But the following config values are set as admin:
|
248 |
# 5 = Starred, Recommended, Activities, Resources
|
251 |
# 5 = Starred, Recommended, Activities, Resources
|
249 |
| activitychoosertabmode | 5 |
|
252 |
| activitychoosertabmode | 5 |
|
250 |
And I reload the page
|
253 |
And I reload the page
|
251 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
254 |
And I open the activity chooser
|
252 |
And "Recommended" "link" should appear before "Activities" "link" in the "Add an activity or resource" "dialogue"
|
255 |
And "Recommended" "link" should appear before "Activities" "link" in the "Add an activity or resource" "dialogue"
|
Línea 253... |
Línea 256... |
253 |
|
256 |
|
254 |
Scenario: Teacher can navigate through activity chooser in Topics format course
|
257 |
Scenario: Teacher can navigate through activity chooser in Topics format course
|
255 |
When I click on "Add an activity or resource" "button" in the "New section" "section"
|
258 |
When I open the activity chooser
|
256 |
Then I should see "All" in the "Add an activity or resource" "dialogue"
|
259 |
Then I should see "All" in the "Add an activity or resource" "dialogue"
|
257 |
And I press the tab key
|
260 |
And I press the tab key
|
258 |
And I press the tab key
|
261 |
And I press the tab key
|
259 |
And I press the tab key
|
262 |
And I press the tab key
|
Línea 266... |
Línea 269... |
266 |
And I press the left key
|
269 |
And I press the left key
|
267 |
And the focused element is "Book" "menuitem" in the "Add an activity or resource" "dialogue"
|
270 |
And the focused element is "Book" "menuitem" in the "Add an activity or resource" "dialogue"
|
268 |
# Confirm clicking "x" button closes modal
|
271 |
# Confirm clicking "x" button closes modal
|
269 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
272 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
270 |
And "Add an activity or resource" "dialogue" should not be visible
|
273 |
And "Add an activity or resource" "dialogue" should not be visible
|
271 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
274 |
And I open the activity chooser
|
272 |
# Confirm escape key closes the modal
|
275 |
# Confirm escape key closes the modal
|
273 |
And I press the escape key
|
276 |
And I press the escape key
|
274 |
And "Add an activity or resource" "dialogue" should not be visible
|
277 |
And "Add an activity or resource" "dialogue" should not be visible
|
Línea 275... |
Línea 278... |
275 |
|
278 |
|
276 |
Scenario: Teacher can navigate through activity chooser in Weekly format course
|
279 |
Scenario: Teacher can navigate through activity chooser in Weekly format course
|
- |
|
280 |
Given I am on "C2" course homepage with editing mode on
|
277 |
Given I am on "C2" course homepage with editing mode on
|
281 |
And I click on "Add content" "button" in the "13 January - 19 January" "section"
|
278 |
When I click on "Add an activity or resource" "button" in the "13 January - 19 January" "section"
|
282 |
When I click on "Activity or resource" "button" in the "13 January - 19 January" "section"
|
279 |
Then I should see "All" in the "Add an activity or resource" "dialogue"
|
283 |
Then I should see "All" in the "Add an activity or resource" "dialogue"
|
280 |
And I press the tab key
|
284 |
And I press the tab key
|
281 |
And I press the tab key
|
285 |
And I press the tab key
|
282 |
And I press the tab key
|
286 |
And I press the tab key
|
Línea 289... |
Línea 293... |
289 |
And I press the left key
|
293 |
And I press the left key
|
290 |
And the focused element is "Book" "menuitem" in the "Add an activity or resource" "dialogue"
|
294 |
And the focused element is "Book" "menuitem" in the "Add an activity or resource" "dialogue"
|
291 |
# Confirm clicking "x" button closes modal
|
295 |
# Confirm clicking "x" button closes modal
|
292 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
296 |
And I click on "Close" "button" in the "Add an activity or resource" "dialogue"
|
293 |
And "Add an activity or resource" "dialogue" should not be visible
|
297 |
And "Add an activity or resource" "dialogue" should not be visible
|
- |
|
298 |
And I click on "Add content" "button" in the "13 January - 19 January" "section"
|
294 |
And I click on "Add an activity or resource" "button" in the "13 January - 19 January" "section"
|
299 |
And I click on "Activity or resource" "button" in the "13 January - 19 January" "section"
|
295 |
# Confirm escape key closes the modal
|
300 |
# Confirm escape key closes the modal
|
296 |
And I press the escape key
|
301 |
And I press the escape key
|
297 |
And "Add an activity or resource" "dialogue" should not be visible
|
302 |
And "Add an activity or resource" "dialogue" should not be visible
|
Línea 298... |
Línea 303... |
298 |
|
303 |
|
299 |
Scenario: Teacher can access 'More help' from activity information in activity chooser
|
304 |
Scenario: Teacher can access 'More help' from activity information in activity chooser
|
300 |
Given I click on "Add an activity or resource" "button" in the "New section" "section"
|
305 |
Given I open the activity chooser
|
301 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
306 |
When I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
302 |
# Confirm more help link exists
|
307 |
# Confirm more help link exists
|
303 |
Then "More help" "link" should exist
|
308 |
Then "More help" "link" should exist
|
304 |
# Confirm that corresponding help icon exist
|
309 |
# Confirm that corresponding help icon exist
|
305 |
And ".iconhelp" "css_element" should exist
|
310 |
And ".fa-book" "css_element" should exist
|
306 |
# Confirm that link opens in new window
|
311 |
# Confirm that link opens in new window
|
307 |
And "Opens in new window" "link" should be visible
|
312 |
And "Opens in new window" "link" should be visible
|
308 |
# Confirm the same behaviour for weekly format course
|
313 |
# Confirm the same behaviour for weekly format course
|
- |
|
314 |
And I am on "C2" course homepage with editing mode on
|
309 |
And I am on "C2" course homepage with editing mode on
|
315 |
And I click on "Add content" "button" in the "13 January - 19 January" "section"
|
310 |
And I click on "Add an activity or resource" "button" in the "13 January - 19 January" "section"
|
316 |
And I click on "Activity or resource" "button" in the "13 January - 19 January" "section"
|
311 |
And I should see "All" in the "Add an activity or resource" "dialogue"
|
317 |
And I should see "All" in the "Add an activity or resource" "dialogue"
|
312 |
And I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
318 |
And I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue"
|
313 |
# Confirm more help link exists
|
319 |
# Confirm more help link exists
|
314 |
And "More help" "link" should exist
|
320 |
And "More help" "link" should exist
|
315 |
# Confirm that corresponding help icon exist
|
321 |
# Confirm that corresponding help icon exist
|
316 |
And ".iconhelp" "css_element" should exist
|
322 |
And ".fa-book" "css_element" should exist
|
317 |
# Confirm that link opens in new window
|
323 |
# Confirm that link opens in new window
|