[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @block @block_course_summary 2 Feature: Course summary block used in a course 3 In order to help particpants know the summary of a course 4 As a teacher 5 I can add the course summary block to a course page 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | summary | category | 10 | Course 1 | C101 | Proved the course summary block works! |0 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | student1 | Sam | Student | [email protected] | 14 | teacher1 | Teacher | One | [email protected] | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C101 | student | 18 | teacher1 | C101 | editingteacher | 19 And I log in as "teacher1" 20 And I follow "Course 1" 21 And I turn editing mode on 22 And I add the "Course/site summary" block 23 And I log out 24 25 Scenario: Student can view course summary 26 When I log in as "student1" 27 And I follow "Course 1" 28 Then "Course/site summary" "block" should exist 29 And I should see "Proved the course summary block works!" in the "Course/site summary" "block" 30 31 Scenario: Teacher can see an edit icon when edit mode is on and follow it to the course edit page 32 When I log in as "teacher1" 33 And I follow "Course 1" 34 And I turn editing mode on 35 Then I should see "Proved the course summary block works!" in the "Course/site summary" "block" 36 And I click on "Edit" "link" in the "Course/site summary" "block" 37 Then I should see "Edit course settings" in the "h2" "css_element" 38 39 Scenario: Teacher can not see edit icon when edit mode is off 40 When I log in as "teacher1" 41 And I follow "Course 1" 42 Then I should see "Proved the course summary block works!" in the "Course/site summary" "block" 43 And "Edit" "link" should not exist in the "Course/site summary" "block"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |