Proyectos de Subversion Moodle

Rev

| 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
2
Feature: Set up attempt grading options into H5P activity
3
  In order to use automatic grading in H5P activity
4
  As a teacher
5
  I need to be able to configure the attempt settings
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@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
    And the following "permission overrides" exist:
18
      | capability                 | permission | role           | contextlevel | reference |
19
      | moodle/h5p:updatelibraries | Allow      | editingteacher | System       |           |
20
    And I log in as "teacher1"
21
    And I am on "Course 1" course homepage with editing mode on
22
    And I add an h5pactivity activity to course "Course 1" section "1"
23
 
24
  Scenario: Default values should have tracking and grading
25
    When the field "Type" matches value "Point"
26
    Then the "Grading method" "select" should be enabled
27
 
28
  Scenario: Scale grading should not have a grading method.
29
    When I set the following fields to these values:
30
          | Name        | Awesome H5P package |
31
          | Type        | Scale               |
32
    Then the "Grading method" "select" should be disabled
33
 
34
  Scenario: None grading should not have a grading method.
35
    When I set the following fields to these values:
36
          | Name        | Awesome H5P package |
37
          | Type        | None                |
38
    Then the "Grading method" "select" should be disabled
39
 
40
  Scenario: Point grading should have a grading method.
41
    When I set the following fields to these values:
42
          | Name        | Awesome H5P package |
43
          | Type        | Point               |
44
    Then the "Grading method" "select" should be enabled
45
 
46
  Scenario: Disable tracking should make grading method disappear.
47
    When I set the following fields to these values:
48
          | Name                    | Awesome H5P package |
49
          | Enable attempt tracking | No                   |
50
    Then "Grading method" "field" should not be visible