Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 50... Línea 50...
50
    Then I should see "Status: Complete"
50
    Then I should see "Status: Complete"
Línea 51... Línea 51...
51
 
51
 
52
  @javascript
52
  @javascript
53
  Scenario: Update course completion when teacher grades a single assignment
53
  Scenario: Update course completion when teacher grades a single assignment
54
    Given I am on the "Test assignment name" "assign activity" page logged in as teacher1
-
 
55
    And I follow "View all submissions"
54
    Given I am on the "Test assignment name" "assign activity" page logged in as teacher1
56
    And I click on "Grade" "link" in the "student1@example.com" "table_row"
55
    And I go to "student1@example.com" "Test assignment name" activity advanced grading page
57
    And I set the field "Grade out of 100" to "40"
56
    And I set the field "Grade out of 100" to "40"
58
    And I click on "Save changes" "button"
57
    And I click on "Save changes" "button"
59
    And I am on "Completion course" course homepage
58
    And I am on "Completion course" course homepage
60
    When I am on the "Completion course" course page logged in as student1
59
    When I am on the "Completion course" course page logged in as student1
Línea 77... Línea 76...
77
    And I expand all fieldsets
76
    And I expand all fieldsets
78
    And I set the field "Assignment - Test assignment name" to "1"
77
    And I set the field "Assignment - Test assignment name" to "1"
79
    And I set the field "Assignment - Test assignment name2" to "1"
78
    And I set the field "Assignment - Test assignment name2" to "1"
80
    And I press "Save changes"
79
    And I press "Save changes"
81
    And I am on the "Test assignment name" "assign activity" page
80
    And I am on the "Test assignment name" "assign activity" page
82
    And I follow "View all submissions"
-
 
83
    And I click on "Grade" "link" in the "student1@example.com" "table_row"
81
    And I go to "student1@example.com" "Test assignment name" activity advanced grading page
84
    And I set the field "Grade out of 100" to "40"
82
    And I set the field "Grade out of 100" to "40"
85
    And I click on "Save changes" "button"
83
    And I click on "Save changes" "button"
86
    And I am on the "Completion course" course page logged in as student1
84
    And I am on the "Completion course" course page logged in as student1
87
    And I should see "Status: In progress"
85
    And I should see "Status: In progress"
88
    And I am on the "Test assignment name2" "assign activity" page logged in as teacher1
86
    And I am on the "Test assignment name2" "assign activity" page logged in as teacher1
89
    And I follow "View all submissions"
-
 
90
    And I click on "Grade" "link" in the "student1@example.com" "table_row"
87
    And I go to "student1@example.com" "Test assignment name2" activity advanced grading page
91
    And I set the field "Grade out of 100" to "40"
88
    And I set the field "Grade out of 100" to "40"
92
    And I click on "Save changes" "button"
89
    And I click on "Save changes" "button"
93
    When I am on the "Completion course" course page logged in as student1
90
    When I am on the "Completion course" course page logged in as student1
94
    Then I should see "Status: Complete"
91
    Then I should see "Status: Complete"
Línea 110... Línea 107...
110
  @javascript
107
  @javascript
111
  Scenario: Course completion should not be updated when teacher grades assignment on activity grader report page
108
  Scenario: Course completion should not be updated when teacher grades assignment on activity grader report page
112
    Given I am on the "Completion course" "grades > Single View > View" page logged in as "teacher1"
109
    Given I am on the "Completion course" "grades > Single View > View" page logged in as "teacher1"
113
    And I click on "Users" "link" in the ".page-toggler" "css_element"
110
    And I click on "Users" "link" in the ".page-toggler" "css_element"
114
    And I turn editing mode on
111
    And I turn editing mode on
115
    And I click on "Student First" in the "user" search widget
112
    And I click on "Student First" in the "Search users" search combo box
116
    And I set the field "Override for Test assignment name" to "1"
113
    And I set the field "Override for Test assignment name" to "1"
117
    When I set the following fields to these values:
114
    When I set the following fields to these values:
118
      | Grade for Test assignment name | 10.00 |
115
      | Grade for Test assignment name | 10.00 |
119
      | Feedback for Test assignment name | test data |
116
      | Feedback for Test assignment name | test data |
120
    And I press "Save"
117
    And I press "Save"