Merge branch 'wip-mdl-52168' of https://github.com/rajeshtaneja/moodle
[moodle.git] / mod / scorm / tests / behat / missing_org.feature
CommitLineData
63c2ea50
DM
1@mod @mod_scorm @_file_upload @_switch_iframe
2Feature: 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 follow "Course 1"
19 And I turn editing mode on
20 And I add a "SCORM package" to section "1"
21 And I set the following fields to these values:
22 | Name | MissingOrg SCORM package |
23 | Description | Description |
24 And I upload "mod/scorm/tests/packages/singlescobasic_missingorg.zip" file to "Package file" filemanager
25 And I click on "Save and display" "button"
26 Then I should see "MissingOrg SCORM package"
27 And I should see "Normal"
28 And I should see "Preview"
29 And I log out
30 And I log in as "student1"
31 And I follow "Course 1"
32 And I follow "MissingOrg SCORM package"
33 And I should see "Normal"
34 And I press "Enter"
35 And I switch to "scorm_object" iframe
f2e6dcba 36 And I switch to "contentFrame" iframe
63c2ea50 37 And I should see "Play of the game"