Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_scorm @_file_upload @_switch_iframe
2
Feature: Check a SCORM package with missing Organisational structure.
3
 
4
  @javascript
5
  Scenario: Add a scorm activity to a course
6
    Given the following "users" exist:
7
      | username | firstname | lastname | email |
8
      | teacher1 | Teacher | 1 | teacher1@example.com |
9
      | student1 | Student | 1 | student1@example.com |
10
    And the following "courses" exist:
11
      | fullname | shortname | category |
12
      | Course 1 | C1 | 0 |
13
    And the following "course enrolments" exist:
14
      | user | course | role |
15
      | teacher1 | C1 | editingteacher |
16
      | student1 | C1 | student |
17
    When I log in as "teacher1"
18
    And I add a scorm activity to course "Course 1" section "1"
19
    And I set the following fields to these values:
20
      | Name | MissingOrg SCORM package |
21
      | Description | Description |
22
      | ID number   | Missingorg  |
23
    And I upload "mod/scorm/tests/packages/singlescobasic_missingorg.zip" file to "Package file" filemanager
24
    And I click on "Save and display" "button"
25
    Then I should see "MissingOrg SCORM package"
26
    And I should see "Enter"
27
    And I should see "Preview"
28
    And I log out
29
    And I am on the "Missingorg" Activity page logged in as student1
30
    And I should see "Enter"
31
    And I press "Enter"
32
    And I switch to "scorm_object" iframe
33
    And I switch to "contentFrame" iframe
34
    And I should see "Play of the game"