Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 31... Línea 31...
31
      | maxattempt               | 1                                                             |
31
      | maxattempt               | 1                                                             |
32
      | completionview           | 1                                                             |
32
      | completionview           | 1                                                             |
33
      | completionusegrade       | 1                                                             |
33
      | completionusegrade       | 1                                                             |
Línea 34... Línea 34...
34
 
34
 
35
  @javascript
35
  @javascript
36
  Scenario: View automatic completion items as a teacher
36
  Scenario: A teacher can view a SCORM activity automatic completion conditions
37
    Given I am on the "Music history" "scorm activity" page logged in as teacher1
37
    Given I am on the "Music history" "scorm activity" page logged in as teacher1
38
    Then "Music history" should have the "View" completion condition
38
    Then "Music history" should have the "View" completion condition
39
    And "Music history" should have the "Receive a score of 3 or more" completion condition
39
    And "Music history" should have the "Receive a score of 3 or more" completion condition
40
    And "Music history" should have the "Do all parts of this activity" completion condition
40
    And "Music history" should have the "Do all parts of this activity" completion condition
Línea 49... Línea 49...
49
    And the field "completionusegrade" matches value "1"
49
    And the field "completionusegrade" matches value "1"
50
    Then I should not see "Any grade"
50
    Then I should not see "Any grade"
51
    And I should not see "Passing grade"
51
    And I should not see "Passing grade"
Línea 52... Línea 52...
52
 
52
 
53
  @javascript
53
  @javascript
54
  Scenario: View automatic completion items as a student
54
  Scenario: A student can complete a SCORM activity by achieving a passing grade
55
    Given I am on the "Music history" "scorm activity" page logged in as student1
55
    Given I am on the "Music history" "scorm activity" page logged in as student1
56
    # We need a little taller window because Firefox is, apparently, unable to auto-scroll within
56
    # We need a little taller window because Firefox is, apparently, unable to auto-scroll within
57
    # an iframe, so we need to ensure that the "Save changes" button is visible in the viewport.
57
    # an iframe, so we need to ensure that the "Save changes" button is visible in the viewport.
58
    And I change window size to "1366x968"
58
    And I change window size to "1366x968"
Línea 100... Línea 100...
100
    And I click on "[id='question_com.scorm.golfsamples.interactions.fun_1_False']" "css_element"
100
    And I click on "[id='question_com.scorm.golfsamples.interactions.fun_1_False']" "css_element"
101
    And I press "Submit Answers"
101
    And I press "Submit Answers"
102
    And I wait until "Score: 33" "text" exists
102
    And I wait until "Score: 33" "text" exists
103
    And I switch to the main frame
103
    And I switch to the main frame
104
    # We need to get some time till the last item is marked as done (or it won't be ready in slow databases).
104
    # We need to get some time till the last item is marked as done (or it won't be ready in slow databases).
105
    # This could be a pause of a few seconds (working ok in super-slow oracle docker database), but re-visiting
105
    # This could be a pause of a few seconds, but re-visiting
106
    # any of the pages seems to  be doing the work too under that very same slow environment.
106
    # any of the pages seems to  be doing the work too under that very same slow environment.
107
    And I click on "Par?" "list_item"
107
    And I click on "Par?" "list_item"
108
    And I switch to "scorm_object" iframe
108
    And I switch to "scorm_object" iframe
109
    And I wait until the page is ready
109
    And I wait until the page is ready
110
    And I switch to the main frame
110
    And I switch to the main frame
111
    When I am on the "Music history" "scorm activity" page
111
    When I am on the "Music history" "scorm activity" page
112
    Then the "View" completion condition of "Music history" is displayed as "done"
112
    Then the "View" completion condition of "Music history" is displayed as "done"
113
    # Conditions that are not possible to achieve (eg score below requirement but all attempts used) are marked as failed.
113
    # Conditions that are not possible to achieve (eg score below requirement but all attempts used) are still marked as todo.
-
 
114
    # this is because the SCORM does not return a score and also that the completion is not possible anymore (as all attempts are used).
114
    And the "Receive a score of 3 or more" completion condition of "Music history" is displayed as "failed"
115
    And the "Receive a score of 3 or more" completion condition of "Music history" is displayed as "todo"
115
    And the "Do all parts of this activity" completion condition of "Music history" is displayed as "done"
116
    And the "Do all parts of this activity" completion condition of "Music history" is displayed as "done"
116
    And the "Receive a grade" completion condition of "Music history" is displayed as "done"
117
    And the "Receive a grade" completion condition of "Music history" is displayed as "done"
117
    And the "Complete or pass the activity" completion condition of "Music history" is displayed as "done"
118
    And the "Complete or pass the activity" completion condition of "Music history" is displayed as "done"
Línea 118... Línea 119...
118
 
119
 
119
  @javascript
120
  @javascript
120
  Scenario: Use manual completion
121
  Scenario: A student can manually mark the scorm activity as done but a teacher cannot
121
    Given I am on the "Music history" "scorm activity" page logged in as teacher1
122
    Given I am on the "Music history" "scorm activity" page logged in as teacher1
122
    And I navigate to "Settings" in current page administration
123
    And I navigate to "Settings" in current page administration
123
    And I expand all fieldsets
124
    And I expand all fieldsets
124
    And I set the field "Students must manually mark the activity as done" to "1"
125
    And I set the field "Students must manually mark the activity as done" to "1"