Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign @javascript
2
Feature: In an assignment, the administrator can edit students' submissions
3
  In order to edit a student's submissions
4
  As an administrator
5
  I need to grade multiple students on one page
6
 
7
  Scenario: Editing a student's submission
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1 | 0 | 1 |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
13
      | student1 | Student | 1 | student1@example.com |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | student1 | C1 | student |
17
    And the following "activity" exists:
18
      | activity                            | assign                  |
19
      | course                              | C1                      |
20
      | name                                | Test assignment name    |
21
      | intro                               | Submit your online text |
22
      | submissiondrafts                    | 0                       |
23
      | assignsubmission_onlinetext_enabled | 1                       |
24
    And the following "mod_assign > submissions" exist:
25
      | assign                | user      | onlinetext                   |
26
      | Test assignment name  | student1  | I'm the student1 submission  |
27
 
28
    And I am on the "Test assignment name" Activity page logged in as admin
29
    And I follow "View all submissions"
30
    And I open the action menu in "Student 1" "table_row"
31
    And I choose "Edit submission" in the open action menu
32
    And I set the following fields to these values:
33
      | Online text | Have you seen the movie Chef? |
34
    And I press "Save changes"
35
    Then I should see "Have you seen the movie Chef?"
36
    And I open the action menu in "Student 1" "table_row"
37
    And I choose "Edit submission" in the open action menu
38
    And I set the following fields to these values:
39
      | Online text | I have seen the movie chef. |
40
    And I press "Save changes"
41
    Then I should see "I have seen the movie chef."