AutorÃa | Ultima modificación | Ver Log |
@core @core_courseFeature: Course content can be downloadedIn order to retain a backup offline copy of course activity/resource dataAs a userI can download a course's contentBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com || student1 | Student | 1 | student1@example.com |And the following "courses" exist:| fullname | shortname || Hockey 101 | C1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And I log in as "admin"And I navigate to "Courses > Download course content" in site administrationAnd I set the following fields to these values:| Download course content feature available | 1 |And I press "Save changes"And I navigate to "Courses > Default settings > Course default settings" in site administrationAnd I set the field "Enable download course content" to "Yes"And I press "Save changes"And I log out@javascriptScenario: A student can download course content when the feature is enabled in their courseGiven I log in as "student1"When I am on "Hockey 101" course homepageAnd I navigate to "Download course content" in current page administrationThen I should see "You are about to download a zip file"# Without the ability to check the downloaded file, the absence of an exception being thrown here is considered a success.And I click on "Download" "button" in the "Download course content" "dialogue"@javascriptScenario: A teacher can download course content when the feature is enabled in their courseGiven I log in as "teacher1"When I am on "Hockey 101" course homepageAnd "Download course content" "link" should exist in current page administrationAnd I navigate to "Download course content" in current page administrationThen I should see "You are about to download a zip file"# Without the ability to check the downloaded file, the absence of an exception being thrown here is considered a success.And I click on "Download" "button" in the "Download course content" "dialogue"