1 |
efrain |
1 |
@core @core_course @javascript
|
|
|
2 |
Feature: Recommending activities
|
|
|
3 |
As an admin I want to recommend activities in the activity chooser
|
|
|
4 |
|
|
|
5 |
Scenario: As an admin I can recommend activities from an admin setting page.
|
|
|
6 |
Given I log in as "admin"
|
|
|
7 |
And I am on site homepage
|
|
|
8 |
And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
9 |
And I click on ".activity-recommend-checkbox" "css" in the "Assignment" "table_row"
|
|
|
10 |
And I navigate to "Courses > Add a new course" in site administration
|
|
|
11 |
When I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
12 |
Then "input[aria-label=\"Recommend activity: Assignment\"][checked=checked]" "css_element" should exist
|
|
|
13 |
And "input[aria-label=\"Recommend activity: Book\"]:not([checked=checked])" "css_element" should exist
|
|
|
14 |
|
|
|
15 |
Scenario: As an admin I can remove recommend activities from an admin setting page.
|
|
|
16 |
Given I log in as "admin"
|
|
|
17 |
And I am on site homepage
|
|
|
18 |
And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
19 |
And I click on ".activity-recommend-checkbox" "css" in the "Assignment" "table_row"
|
|
|
20 |
And I navigate to "Courses > Add a new course" in site administration
|
|
|
21 |
And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
22 |
And "input[aria-label=\"Recommend activity: Assignment\"][checked=checked]" "css_element" should exist
|
|
|
23 |
And "input[aria-label=\"Recommend activity: Book\"]:not([checked=checked])" "css_element" should exist
|
|
|
24 |
And I click on ".activity-recommend-checkbox" "css" in the "Assignment" "table_row"
|
|
|
25 |
And I navigate to "Courses > Add a new course" in site administration
|
|
|
26 |
When I navigate to "Courses > Activity chooser > Recommended activities" in site administration
|
|
|
27 |
Then "input[aria-label=\"Recommend activity: Assignment\"]:not([checked=checked])" "css_element" should exist
|
|
|
28 |
And "input[aria-label=\"Recommend activity: Book\"]:not([checked=checked])" "css_element" should exist
|