Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 52... Línea 52...
52
    And the manual completion button of "Music history" is displayed as "Mark as done"
52
    And the manual completion button of "Music history" is displayed as "Mark as done"
53
    And I toggle the manual completion state of "Music history"
53
    And I toggle the manual completion state of "Music history"
54
    And the manual completion button of "Music history" is displayed as "Done"
54
    And the manual completion button of "Music history" is displayed as "Done"
Línea 55... Línea 55...
55
 
55
 
56
  @javascript
56
  @javascript
57
  Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No
57
  Scenario: Assign module manual completion button hidden if Show activity completion is set to No
58
    Given I am on the "Course 1" course page logged in as teacher1
58
    Given I am on the "Course 1" course page logged in as teacher1
59
    And I navigate to "Settings" in current page administration
59
    And I navigate to "Settings" in current page administration
60
    And I expand all fieldsets
60
    And I expand all fieldsets
61
    And I set the field "Show activity completion conditions" to "No"
61
    And I set the field "Show activity completion conditions" to "No"
Línea 68... Línea 68...
68
    Then the manual completion button for "Music history" should not exist
68
    Then the manual completion button for "Music history" should not exist
69
    And I am on the "Music history" "assign activity" page
69
    And I am on the "Music history" "assign activity" page
70
    And the manual completion button for "Music history" should exist
70
    And the manual completion button for "Music history" should exist
Línea 71... Línea 71...
71
 
71
 
72
  @javascript
72
  @javascript
73
  Scenario: Use manual completion from the activity page
73
  Scenario: A student can manually mark the assign activity as done but a teacher cannot
74
    Given I am on the "Music history" "assign activity" page logged in as teacher1
74
    Given I am on the "Music history" "assign activity" page logged in as teacher1
75
    # Teacher view.
75
    # Teacher view.
76
    And the manual completion button for "Music history" should be disabled
76
    And the manual completion button for "Music history" should be disabled
77
    And I log out
77
    And I log out
78
    # Student view.
78
    # Student view.
79
    And I am on the "Music history" "assign activity" page logged in as student1
79
    And I am on the "Music history" "assign activity" page logged in as student1
80
    Then the manual completion button of "Music history" is displayed as "Mark as done"
80
    Then the manual completion button of "Music history" is displayed as "Mark as done"
81
    And I toggle the manual completion state of "Music history"
81
    And I toggle the manual completion state of "Music history"
Línea 82... Línea 82...
82
    And the manual completion button of "Music history" is displayed as "Done"
82
    And the manual completion button of "Music history" is displayed as "Done"
83
 
83
 
84
  Scenario: View automatic completion items as a teacher
84
  Scenario: Verify that the assignment completion conditions are displayed to teachers
85
    Given I am on the "Music history" "assign activity editing" page logged in as teacher1
85
    Given I am on the "Music history" "assign activity editing" page logged in as teacher1
86
    And I expand all fieldsets
86
    And I expand all fieldsets
87
    And I set the following fields to these values:
87
    And I set the following fields to these values:
Línea 93... Línea 93...
93
    Then "Music history" should have the "View" completion condition
93
    Then "Music history" should have the "View" completion condition
94
    And "Music history" should have the "Make a submission" completion condition
94
    And "Music history" should have the "Make a submission" completion condition
95
    And "Music history" should have the "Receive a grade" completion condition
95
    And "Music history" should have the "Receive a grade" completion condition
Línea 96... Línea 96...
96
 
96
 
97
  @javascript
97
  @javascript
98
  Scenario: View automatic completion items as a student
98
  Scenario: Verify that students can complete an assignment activity by achieving a passing grade
99
    Given I am on the "Music history" "assign activity editing" page logged in as teacher1
99
    Given I am on the "Music history" "assign activity editing" page logged in as teacher1
100
    And I expand all fieldsets
100
    And I expand all fieldsets
101
    And I set the following fields to these values:
101
    And I set the following fields to these values:
102
      | assignsubmission_onlinetext_enabled | 1                                                 |
102
      | assignsubmission_onlinetext_enabled | 1                                                 |
Línea 119... Línea 119...
119
    And the "View" completion condition of "Music history" is displayed as "done"
119
    And the "View" completion condition of "Music history" is displayed as "done"
120
    And the "Make a submission" completion condition of "Music history" is displayed as "done"
120
    And the "Make a submission" completion condition of "Music history" is displayed as "done"
121
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
121
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
122
    And I log out
122
    And I log out
123
    And I am on the "Music history" "assign activity" page logged in as teacher1
123
    And I am on the "Music history" "assign activity" page logged in as teacher1
124
    And I follow "View all submissions"
-
 
125
    And I click on "Grade" "link" in the "Vinnie Student1" "table_row"
124
    And I go to "Vinnie Student1" "Music history" activity advanced grading page
126
    And I set the field "Grade out of 100" to "33"
125
    And I set the field "Grade out of 100" to "33"
127
    And I set the field "Notify student" to "0"
126
    And I set the field "Notify student" to "0"
128
    And I press "Save changes"
127
    And I press "Save changes"
129
    And I follow "View all submissions"
128
    And I follow "View all submissions"
130
    And I log out
129
    And I log out
Línea 143... Línea 142...
143
    And I press "Submit assignment"
142
    And I press "Submit assignment"
144
    And I press "Continue"
143
    And I press "Continue"
145
    And the "Make a submission" completion condition of "Music history 2" is displayed as "done"
144
    And the "Make a submission" completion condition of "Music history 2" is displayed as "done"
146
    And I log out
145
    And I log out
147
    And I am on the "Music history 2" "assign activity" page logged in as teacher1
146
    And I am on the "Music history 2" "assign activity" page logged in as teacher1
148
    And I follow "View all submissions"
-
 
149
    And I click on "Grade" "link" in the "Vinnie Student1" "table_row"
147
    And I go to "Vinnie Student1" "Music history 2" activity advanced grading page
150
    And I set the field "Grade out of 100" to "33"
148
    And I set the field "Grade out of 100" to "33"
151
    And I set the field "Notify student" to "0"
149
    And I set the field "Notify student" to "0"
152
    And I set the field "Allow another attempt" to "Yes"
150
    And I set the field "Allow another attempt" to "Yes"
153
    And I press "Save changes"
151
    And I press "Save changes"
154
    And I log out
152
    And I log out