1 @mod @mod_scorm @_file_upload @_switch_iframe
2 Feature: Check a SCORM package with missing Organisational structure.
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 |
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 am on "Course 1" course homepage with editing mode on
19 And I add a "SCORM package" to section "1"
20 And I set the following fields to these values:
21 | Name | MissingOrg SCORM package |
22 | Description | Description |
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 "Normal"
27 And I should see "Preview"
29 And I log in as "student1"
30 And I am on "Course 1" course homepage
31 And I follow "MissingOrg SCORM package"
32 And I should see "Normal"
34 And I switch to "scorm_object" iframe
35 And I switch to "contentFrame" iframe
36 And I should see "Play of the game"