AutorÃa | Ultima modificación | Ver Log |
@mod @mod_imscp @core_backupFeature: IMS Common Cartridge package importIn order to add a Common Cartridge package to a courseAs a teacherI need to be able to import IMS Common Cartridge packageBackground:Given the following "users" exist:| username | firtname | lastname | email || teacher1 | Teacher | One | teacher1@example.com |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |@javascript @_file_uploadScenario: Teacher can import an IMS Common Cartridge to a courseGiven I am on the "Course 1" course page logged in as teacher1And I navigate to "Course reuse" in current page administrationAnd I follow "Restore"When I upload "mod/imscp/tests/packages/py4e_export.imscc" file to "Backup file" filemanagerAnd I press "Restore"# Confirm that IMS Common Cartridge package can be restored.Then I should see "The selected file is not a standard Moodle backup file. The restore process will try to convert the backup file into the standard format and then restore it."And I should see "IMS Common Cartridge 1.1"# Start the restore procedure.And I press "Continue"# Merge imscc into the existing course, Course 1.And I press "Continue"# Proceed with default restore settings.And I press "Next"# Proceed with default course settings.And I press "Next"# Start the restore process.And I press "Perform restore"# Run cron to execute restore process.And I trigger cron# Confirm the imscc package was successfully restored and added to the existing courseAnd I am on the "Course 1" course pageAnd I should see "Installing Python"