Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 24... Línea 24...
24
      | section          | 1             |
24
      | section          | 1             |
25
      | completion       | 2             |
25
      | completion       | 2             |
26
      | completionview   | 1             |
26
      | completionview   | 1             |
27
      | completionsubmit | 1             |
27
      | completionsubmit | 1             |
28
    And I am on the "Music history" "feedback activity" page logged in as teacher1
28
    And I am on the "Music history" "feedback activity" page logged in as teacher1
29
    And I click on "Edit questions" "link" in the "[role=main]" "css_element"
29
    And I navigate to "Questions" in current page administration
30
    And I add a "Multiple choice" question to the feedback with:
30
    And I add a "Multiple choice" question to the feedback with:
31
        | Question               | What is your favourite instrument |
31
        | Question               | What is your favourite instrument |
32
        | Label                  | instrument1                       |
32
        | Label                  | instrument1                       |
33
        | Multiple choice type   | Multiple choice - single answer   |
33
        | Multiple choice type   | Multiple choice - single answer   |
34
        | Multiple choice values | drums\guitar\hurdygurdy           |
34
        | Multiple choice values | drums\guitar\hurdygurdy           |
35
    And I log out
35
    And I log out
Línea 36... Línea 36...
36
 
36
 
37
  Scenario: View automatic completion items as a teacher
37
  Scenario: Feedback module displays completion conditions to teachers
38
    When I am on the "Music history" "feedback activity" page logged in as teacher1
38
    When I am on the "Music history" "feedback activity" page logged in as teacher1
39
    Then "Music history" should have the "View" completion condition
39
    Then "Music history" should have the "View" completion condition
Línea 40... Línea 40...
40
    And "Music history" should have the "Submit feedback" completion condition
40
    And "Music history" should have the "Submit feedback" completion condition
41
 
41
 
42
  Scenario: View automatic completion items as a student
42
  Scenario: Student can complete a feedback activity when all conditions are met
43
    Given I am on the "Music history" "feedback activity" page logged in as student1
43
    Given I am on the "Music history" "feedback activity" page logged in as student1
44
    And the "View" completion condition of "Music history" is displayed as "todo"
44
    And the "View" completion condition of "Music history" is displayed as "todo"
45
    And the "Submit feedback" completion condition of "Music history" is displayed as "todo"
45
    And the "Submit feedback" completion condition of "Music history" is displayed as "todo"
Línea 50... Línea 50...
50
    And I am on the "Music history" "feedback activity" page
50
    And I am on the "Music history" "feedback activity" page
51
    Then the "View" completion condition of "Music history" is displayed as "done"
51
    Then the "View" completion condition of "Music history" is displayed as "done"
52
    And the "Submit feedback" completion condition of "Music history" is displayed as "done"
52
    And the "Submit feedback" completion condition of "Music history" is displayed as "done"
Línea 53... Línea 53...
53
 
53
 
54
  @javascript
54
  @javascript
55
  Scenario: Use manual completion
55
  Scenario: A student can manually mark the feedback activity as done but a teacher cannot
56
    Given I am on the "Music history" "feedback activity editing" page logged in as teacher1
56
    Given I am on the "Music history" "feedback activity editing" page logged in as teacher1
57
    And I expand all fieldsets
57
    And I expand all fieldsets
58
    And I set the field "Students must manually mark the activity as done" to "1"
58
    And I set the field "Students must manually mark the activity as done" to "1"
59
    And I press "Save and display"
59
    And I press "Save and display"