[ Index ] |
PHP Cross Reference of Unnamed Project |
[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 | student1@example.com | 14 | teacher1 | Teacher | One | teacher1@example.com | 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 summary" "block" should exist 29 And I should see "Course summary" in the "Course summary" "block" 30 And I should see "Proved the course summary block works!" in the "Course summary" "block" 31 32 Scenario: Teacher can see an edit icon when edit mode is on and follow it to the course edit page 33 When I log in as "teacher1" 34 And I follow "Course 1" 35 And I turn editing mode on 36 Then I should see "Proved the course summary block works!" in the "Course summary" "block" 37 And I should see "Course summary" in the "Course summary" "block" 38 And I click on "Edit" "link" in the "Course summary" "block" 39 Then I should see "Edit course settings" in the "h2" "css_element" 40 41 Scenario: Teacher can not see edit icon when edit mode is off 42 When I log in as "teacher1" 43 And I follow "Course 1" 44 Then I should see "Proved the course summary block works!" in the "Course summary" "block" 45 And I should see "Course summary" in the "Course summary" "block" 46 And "Edit" "link" should not exist in the "Course summary" "block"
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 |