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 @_alert
2
Feature: Confirm progress gets saved on unload events
3
  In order to let students access a scorm package
4
  As a teacher
5
  I need to add scorm activity to a course
6
  Background:
7
    Given the following "users" exist:
8
      | username | firstname | lastname | email |
9
      | teacher1 | Teacher | 1 | teacher1@example.com |
10
      | student1 | Student | 1 | student1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1 | 0 |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
      | student1 | C1 | student |
18
    And I change window size to "large"
19
 
20
  @javascript
21
  Scenario: Test progress gets saved correctly when the user navigates away from the scorm activity
22
    Given the following "activity" exists:
23
      | activity        | scorm                                                              |
24
      | course          | C1                                                                 |
25
      | name            | Runtime Basic Calls SCORM 2004 3rd Edition package                 |
26
      | packagefilepath | mod/scorm/tests/packages/RuntimeBasicCalls_SCORM20043rdEdition.zip |
27
    When I log in as "student1"
28
    And I am on "Course 1" course homepage
29
    And I am on the "Runtime Basic Calls SCORM 2004 3rd Edition package" "scorm activity" page
30
    Then I should see "Enter"
31
    And I press "Enter"
32
    And I switch to "scorm_object" iframe
33
    And I press "Next"
34
    And I press "Next"
35
    And I switch to "contentFrame" iframe
36
    And I should see "Scoring"
37
    And I switch to the main frame
38
    And I am on the "Runtime Basic Calls SCORM 2004 3rd Edition package" "scorm activity" page
39
    And I should see "Enter"
40
    And I click on "Enter" "button" confirming the dialogue
41
    And I switch to "scorm_object" iframe
42
    And I switch to "contentFrame" iframe
43
    And I should see "Scoring"
44
    And I switch to the main frame
45
    # Go away from the scorm to stop background requests
46
    And I am on homepage