Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_h5pactivity @core_h5p @_file_upload @_switch_iframe @javascript @core_completion
2
Feature: View activity completion information in the h5p activity
3
  In order to have visibility of h5p completion requirements
4
  As a student
5
  I need to be able to view my h5p completion progress
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | student1 | Vinnie    | Student1 | student1@example.com |
11
      | teacher1 | Darrell   | Teacher1 | teacher1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | enablecompletion | showcompletionconditions |
14
      | Course 1 | C1        | 1                | 1                        |
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
19
    And the following "activity" exists:
20
      | activity           | h5pactivity                          |
21
      | course             | C1                                   |
22
      | name               | Music history                        |
23
      | completion         | 2                                    |
24
      | completionview     | 1                                    |
25
      | completionusegrade | 1                                    |
26
      | packagefilepath    | h5p/tests/fixtures/filltheblanks.h5p |
27
 
1441 ariadna 28
  Scenario: A student can manually mark the h5p activity as done but a teacher cannot
1 efrain 29
    Given I am on the "Music history" "h5pactivity activity editing" page logged in as teacher1
30
    And I expand all fieldsets
31
    And I set the field "Students must manually mark the activity as done" to "1"
32
    And I press "Save and display"
33
    # Teacher view.
34
    And I am on the "Music history" "h5pactivity activity" page
35
    And the manual completion button for "Music history" should be disabled
36
    # Student view.
37
    When I am on the "Music history" "h5pactivity activity" page logged in as student1
38
    Then the manual completion button of "Music history" is displayed as "Mark as done"
39
    And I toggle the manual completion state of "Music history"
40
    And the manual completion button of "Music history" is displayed as "Done"