Proyectos de Subversion Moodle

Rev

| 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
49
    And I follow "View all submissions"
50
    And I click on "T" "link" in the ".lastinitial" "css_element"
51
    And I click on "Grade" "link" in the "Student Two" "table_row"
52
    And I should see "This is a submission for Student Two"
53
    And I should see "1 of 1"
54
    And I follow "Reset table preferences"
55
    Then I should see "This is a submission for Student Two"
56
    And I should see "2 of 2"
57
    And I log out