Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@mod @mod_imscp @core_backup
2
Feature: IMS Common Cartridge package import
3
  In order to add a Common Cartridge package to a course
4
  As a teacher
5
  I need to be able to import IMS Common Cartridge package
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firtname | lastname | email                |
10
      | teacher1 | Teacher  | One      | teacher1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname |
13
      | Course 1 | C1        |
14
    And the following "course enrolments" exist:
15
      | user     | course | role           |
16
      | teacher1 | C1     | editingteacher |
17
 
18
  @javascript @_file_upload
19
  Scenario: Teacher can import an IMS Common Cartridge to a course
20
    Given I am on the "Course 1" course page logged in as teacher1
21
    And I navigate to "Course reuse" in current page administration
22
    And I follow "Restore"
23
    When I upload "mod/imscp/tests/packages/py4e_export.imscc" file to "Backup file" filemanager
24
    And I press "Restore"
25
    # Confirm that IMS Common Cartridge package can be restored.
26
    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."
27
    And I should see "IMS Common Cartridge 1.1"
28
    # Start the restore procedure.
29
    And I press "Continue"
30
    # Merge imscc into the existing course, Course 1.
31
    And I press "Continue"
32
    # Proceed with default restore settings.
33
    And I press "Next"
34
    # Proceed with default course settings.
35
    And I press "Next"
36
    # Start the restore process.
37
    And I press "Perform restore"
38
    # Run cron to execute restore process.
39
    And I trigger cron
40
    # Confirm the imscc package was successfully restored and added to the existing course
41
    And I am on the "Course 1" course page
42
    And I should see "Installing Python"