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: Teacher can enable anonymous submissions for an assignment
3
  In order to make an anonymous submission to an assignment
4
  As a teacher
5
  I should be able to enable anonymous submissions
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category |
10
      | Course 1 | C1        | 0        |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email                |
13
      | teacher1 | Teacher   | One      | teacher1@example.com |
14
      | student1 | Student   | One      | student1@example.com |
15
    And the following "course enrolments" exist:
16
      | user     | course | role           |
17
      | teacher1 | C1     | editingteacher |
18
      | student1 | C1     | student        |
19
    And the following "activities" exist:
20
      | activity | course | name     | assignsubmission_onlinetext_enabled | blindmarking     |
21
      | assign   | C1     | Assign 1 | 1                                   | 1                |
22
 
23
  @javascript
24
  Scenario: Teacher can enable anonymous submissions
25
    # Submit an assignment as student1
26
    Given the following "mod_assign > submissions" exist:
27
      | assign   | user      | onlinetext                          |
28
      | Assign 1 | student1  | I'm the student's first submission  |
29
    When I am on the "Assign 1" "assign activity editing" page logged in as teacher1
30
    # Confirm that anonymous submissions can't be changed to no anymore
31
    Then "blindmarking" "select" should not exist
32
    And I press "Cancel"
33
    And I am on the "Assign 1" "assign activity" page
1441 ariadna 34
    And I navigate to "Submissions" in current page administration
1 efrain 35
    # Confirm that Participant [n] is displayed instead of Student One - student name is hidden
36
    And I should not see "Student One" in the "Participant" "table_row"
1441 ariadna 37
    And I click on "Grade actions" "actionmenu" in the "Participant" "table_row"
38
    And I choose "Grade" in the open action menu
1 efrain 39
    And I set the field "Grade out of 100" to "70"
40
    And I press "Save changes"
41
    And I am on the "Assign 1" "assign activity" page
1441 ariadna 42
    And I navigate to "Reveal student identities" in current page administration
1 efrain 43
    And I should see "Are you sure you want to reveal student identities for this assignment? This operation cannot be undone. Once the student identities have been revealed, the marks will be released to the gradebook."
44
    And I press "Continue"
45
    # Confirm that student identity is no longer hidden and grade is retained
46
    And I should not see "Participant" in the "Student One" "table_row"
47
    And I should see "70.00" in the "Student One" "table_row"