Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 23... Línea 23...
23
      | completion         | 2                                    |
23
      | completion         | 2                                    |
24
      | completionview     | 1                                    |
24
      | completionview     | 1                                    |
25
      | completionusegrade | 1                                    |
25
      | completionusegrade | 1                                    |
26
      | packagefilepath    | h5p/tests/fixtures/filltheblanks.h5p |
26
      | packagefilepath    | h5p/tests/fixtures/filltheblanks.h5p |
Línea 27... Línea -...
27
 
-
 
28
  Scenario: View automatic completion items
27
 
29
    Given I am on the "Music history" "h5pactivity activity" page logged in as teacher1
-
 
30
    # Teacher view.
-
 
31
    And "Music history" should have the "View" completion condition
-
 
32
    And "Music history" should have the "Receive a grade" completion condition
-
 
33
    # Student view.
-
 
34
    When I am on the "Music history" "h5pactivity activity" page logged in as student1
-
 
35
    And I switch to "h5p-player" class iframe
-
 
36
    And I switch to "h5p-iframe" class iframe
-
 
37
    And I click on "Check" "button" in the ".h5p-question-buttons" "css_element"
-
 
38
    And I reload the page
-
 
39
    Then the "View" completion condition of "Music history" is displayed as "done"
-
 
40
    And the "Receive a grade" completion condition of "Music history" is displayed as "done"
-
 
41
 
-
 
42
  Scenario: Use manual completion
28
  Scenario: A student can manually mark the h5p activity as done but a teacher cannot
43
    Given I am on the "Music history" "h5pactivity activity editing" page logged in as teacher1
29
    Given I am on the "Music history" "h5pactivity activity editing" page logged in as teacher1
44
    And I expand all fieldsets
30
    And I expand all fieldsets
45
    And I set the field "Students must manually mark the activity as done" to "1"
31
    And I set the field "Students must manually mark the activity as done" to "1"
46
    And I press "Save and display"
32
    And I press "Save and display"