AutorÃa | Ultima modificación | Ver Log |
@mod @mod_lessonFeature: Display the lesson description in the lesson and optionally in the courseIn order to display the the lesson description description in the courseAs a teacherI need to enable the 'Display description on course page' setting.Background:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activity" exist:| activity | name | intro | course | idnumber || lesson | Test lesson name | Test lesson description | C1 | 0001 |And the following "mod_lesson > page" exist:| lesson | qtype | title | content || Test lesson name | content | Test lesson part 1 | Test lesson part 1 |And the following "mod_lesson > answer" exist:| page | answer | jumpto || Test lesson part 1 | Next page | Next page |Scenario: Description is displayed in the LessonWhen I am on the "Test lesson name" "lesson activity" page logged in as teacher1Then I should see "Test lesson description"Scenario: Show lesson description in the course homepageGiven I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1And the following fields match these values:| Display description on course page | |And I set the following fields to these values:| Display description on course page | 1 |And I press "Save and return to course"When I am on "Course 1" course homepageThen I should see "Test lesson description"Scenario: Hide lesson description in the course homepageGiven I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1And the following fields match these values:| Display description on course page | |And I press "Save and return to course"When I am on "Course 1" course homepageThen I should not see "Test lesson description"