[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_course_list 2 Feature: Enable the course_list block on the dashboard and view it's contents 3 In order to enable the course list block on the dashboard 4 As a user 5 I can add the course list block to the dashboard 6 7 Background: 8 Given the following "categories" exist: 9 | name | category | idnumber | 10 | Category 1 | 0 | CAT1 | 11 | Category 2 | 0 | CAT2 | 12 | Category 3 | CAT2 | CAT3 | 13 And the following "courses" exist: 14 | fullname | shortname | category | 15 | Course 1 | C1 | 0 | 16 | Course 2 | C2 | CAT1 | 17 | Course 3 | C3 | CAT2 | 18 | Course 4 | C4 | CAT3 | 19 And the following "users" exist: 20 | username | firstname | lastname | email | 21 | teacher1 | Teacher | First | teacher1@example.com | 22 And the following "course enrolments" exist: 23 | user | course | role | 24 | teacher1 | C1 | editingteacher | 25 | teacher1 | C2 | editingteacher | 26 | teacher1 | C3 | editingteacher | 27 28 Scenario: Add the course list block on the dashboard and navigate to the course listing 29 Given I log in as "teacher1" 30 And I press "Customise this page" 31 When I add the "Courses" block 32 Then I should see "Course 1" in the "My courses" "block" 33 And I should see "Course 2" in the "My courses" "block" 34 And I should see "Course 3" in the "My courses" "block" 35 And I should not see "Course 4" in the "My courses" "block" 36 And I follow "All courses" 37 And I should see "Miscellaneous" 38 39 Scenario: Add the course list block on the dashboard and navigate to another course 40 Given I log in as "teacher1" 41 And I press "Customise this page" 42 When I add the "Courses" block 43 Then I should see "Course 1" in the "My courses" "block" 44 And I should see "Course 2" in the "My courses" "block" 45 And I should see "Course 3" in the "My courses" "block" 46 And I should not see "Course 4" in the "My courses" "block" 47 And I follow "Course 3" 48 And I should see "Course 3" 49 50 Scenario: Add the course list block on the dashboard and view as an admin 51 Given I log in as "admin" 52 And I press "Customise this page" 53 When I add the "Courses" block 54 Then I should see "Miscellaneous" in the "Course categories" "block" 55 And I should see "Category 1" in the "Course categories" "block" 56 And I should see "Category 2" in the "Course categories" "block" 57 And I should not see "Category 3" in the "Course categories" "block" 58 And I should not see "Course 1" in the "Course categories" "block" 59 And I should not see "Course 2" in the "Course categories" "block" 60 And I follow "All courses" 61 And I should see "Miscellaneous"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |