Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradereport @gradereport_grader @javascript
2
Feature: Display feedback on the Grader report
3
  In order to check the expected results are displayed
4
  As a teacher
5
  I need to see the feedback information in a modal
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname |
10
      | Course 1 | C1        |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email                |
13
      | teacher1 | Teacher   | 1        | teacher1@example.com |
14
      | student1 | Student   | 1        | student1@example.com |
15
      | student2 | Student   | 2        | student2@example.com |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher1 | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    And the following "activities" exist:
22
      | activity | course | name                   | assignfeedback_comments_enabled |
23
      | assign   | C1     | Test assignment name 1 | 1                               |
24
      | assign   | C1     | Test assignment name 2 | 1                               |
25
    And the following "mod_assign > submissions" exist:
26
      | assign                 | user     | onlinetext                            |
27
      | Test assignment name 1 | student1 | This is a submission for assignment 1 |
28
      | Test assignment name 2 | student1 | This is a submission for assignment 2 |
29
    And the following "grade items" exist:
30
      | itemname | course | gradetype | itemtype |
31
      | Grade item 1 | C1 | text | manual |
32
    And the following "grade grades" exist:
33
      | gradeitem              | user     | grade | feedback                     |
34
      | Grade item 1           | student1 |       | Longer feedback text content |
35
    And I am on the "Test assignment name 1" "assign activity" page logged in as teacher1
36
    And I follow "View all submissions"
37
    And I click on "Grade" "link" in the "Student 1" "table_row"
38
    And I set the following fields to these values:
39
      | Grade out of 100  | 50               |
40
      | Feedback comments | This is feedback |
41
    And I press "Save changes"
42
 
43
  Scenario: View the feedback icon on the Grader report
44
    When I am on the "Course 1" "grades > Grader report > View" page
45
    Then I should see "Test assignment name 1" in the "user-grades" "table"
46
    And I should see "Test assignment name 2" in the "user-grades" "table"
47
    And "Feedback provided" "icon" should exist in the "Student 1" "table_row"
48
    And "Feedback provided" "icon" should not exist in the "Student 2" "table_row"
49
 
50
  Scenario: View the feedback modal from the action menu
51
    When I am on the "Course 1" "grades > Grader report > View" page
52
    And I click on "Test assignment name 1" "core_grades > grade_actions" in the "Student 1" "table_row"
53
    When I choose "View feedback" in the open action menu
54
    Then I should see "This is feedback" in the "Test assignment name 1" "dialogue"
55
 
56
  Scenario: View the feedback text for text only grade
57
    When I am on the "Course 1" "grades > Grader report > View" page
58
    Then I should see "Grade item 1"
59
    And "Longer feedback ..." "text" should exist in the "Student 1" "table_row"
60
 
61
  Scenario: View the feedback modal for text only grade
62
    Given I am on the "Course 1" "grades > Grader report > View" page
63
    When I click on "Longer feedback ..." "text" in the "Student 1" "table_row"
64
    Then I should see "Longer feedback text content" in the "Grade item 1" "dialogue"