AutorÃa | Ultima modificación | Ver Log |
@block @block_featured_coursesFeature: Add a featured block on the dashboardI can add completion block to the dashboard and set the courses as featuredBackground:And the following "courses" exist:| fullname | shortname | category | enablecompletion || Course 1 | C1 | 0 | 1 || Course 2 | C2 | 0 | 1 || Course 3 | C3 | 0 | 1 || Course 4 | C4 | 0 | 1 |@javascriptScenario: Add the block, set 4 featured courses and remove one after, only two should displayGiven I log in as "admin"And I set editing mode onAnd I add the "Featured courses" blockAnd I configure the "Featured courses" blockAnd I expand all fieldsetsAnd I should see "Title"And I set the field "Title" to "My featured courses"And I press "Add 3 more courses"Then I set the following fields to these values:| Selected course 1 | Course 1 || Selected course 2 | Course 2 || Selected course 3 | Course 3 || Selected course 4 | Course 4 |And I set the field "Region" to "content"And I press "Save changes"Then I should see "Course 1" in the "My featured courses" "block"Then I should see "Course 2" in the "My featured courses" "block"Then I should see "Course 3" in the "My featured courses" "block"Then I should see "Course 4" in the "My featured courses" "block"Then I configure the "My featured courses" blockAnd I press "Remove last course"And I press "Save changes"Then I should see "Course 1" in the "My featured courses" "block"Then I should see "Course 2" in the "My featured courses" "block"Then I should see "Course 3" in the "My featured courses" "block"Then I should not see "Course 4" in the "My featured courses" "block"