Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: In an assignment, teachers can use table preferences.
3
  In order to improve grading process
4
  As a teacher
5
  I need to be able to filter students by first and last name.
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | student1 | Student   | One      | student1@example.com |
11
      | student2 | Student   | Two      | student2@example.com |
12
      | teacher1 | Darrell   | Teacher1 | teacher1@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | enablecompletion | showcompletionconditions |
15
      | Course 1 | C1        | 1                | 1                        |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | student1 | C1     | student        |
19
      | student2 | C1     | student        |
20
      | teacher1 | C1     | editingteacher |
21
    And the following "activity" exists:
22
      | activity                            | assign             |
23
      | course                              | C1                 |
24
      | name                                | Test assignment    |
25
      | assignsubmission_onlinetext_enabled | 1                  |
26
    And I log out
27
    And I log in as "student1"
28
    And I am on the "Test assignment" Activity page
29
    And I press "Add submission"
30
    And I set the following fields to these values:
31
      | Online text | This is a submission for Student One |
32
    And I press "Save changes"
33
    And I press "Submit assignment"
34
    And I press "Continue"
35
    And I log out
36
    And I log in as "student2"
37
    And I am on the "Test assignment" Activity page
38
    And I press "Add submission"
39
    And I set the following fields to these values:
40
      | Online text | This is a submission for Student Two |
41
    And I press "Save changes"
42
    And I press "Submit assignment"
43
    And I press "Continue"
44
 
45
  @javascript
46
  Scenario: As a teacher I can filter student submissions on the View all submission page
47
    When I log in as "teacher1"
48
    And I am on the "Test assignment" Activity page
1441 ariadna 49
    And I navigate to "Submissions" in current page administration
50
    And I click on "Filter by name" "combobox"
51
    And I select "T" in the "Last name" "core_course > initials bar"
52
    And I press "Apply"
53
    And I change window size to "large"
54
    And I click on "Grade actions" "actionmenu" in the "Student Two" "table_row"
55
    And I choose "Grade" in the open action menu
56
    And I change window size to "medium"
1 efrain 57
    And I should see "This is a submission for Student Two"
58
    And I should see "1 of 1"
59
    And I follow "Reset table preferences"
60
    Then I should see "This is a submission for Student Two"
61
    And I should see "2 of 2"
62
    And I log out