MDL-43743 behat: Lightweight scorm package
authorDavid Monllao <davidm@moodle.com>
Fri, 17 Jan 2014 09:39:25 +0000 (17:39 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 17 Jan 2014 09:39:25 +0000 (17:39 +0800)
The previous used package were adding a second iframe
inside the scorm iframe and was slow loading it;
this patch replaces it for a simple one without any
extra iframe.

mod/scorm/tests/behat/add_scorm.feature
mod/scorm/tests/packages/singlesco_scorm12.zip [new file with mode: 0644]

index 57cb932..2efa5dc 100644 (file)
@@ -24,7 +24,7 @@ Feature: Add scorm activity
     And I fill the moodle form with:
       | Name | Awesome SCORM package |
       | Description | Description |
-    And I upload "mod/scorm/tests/packages/singlescobasic.zip" file to "Package file" filemanager
+    And I upload "mod/scorm/tests/packages/singlesco_scorm12.zip" file to "Package file" filemanager
     And I click on "Save and display" "button"
     Then I should see "Awesome SCORM package"
     And I should see "Normal"
@@ -36,7 +36,6 @@ Feature: Add scorm activity
     And I should see "Normal"
     And I press "Enter"
     And I switch to "scorm_object" iframe
-    And I switch to "contentFrame" iframe
-    And I should see "Play of the game"
+    And I should see "Not implemented yet"
     And I switch to the main frame
     And I follow "Course 1"
diff --git a/mod/scorm/tests/packages/singlesco_scorm12.zip b/mod/scorm/tests/packages/singlesco_scorm12.zip
new file mode 100644 (file)
index 0000000..0735a90
Binary files /dev/null and b/mod/scorm/tests/packages/singlesco_scorm12.zip differ