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: When a Teacher hides an assignment from view for students it should consistently indicate it is hidden.
3
 
4
  Background: Grade multiple students on one page
5
    Given the following "courses" exist:
6
      | fullname | shortname | category | groupmode |
7
      | Course 1 | C1 | 0 | 1 |
8
    And the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Teacher | 1 | teacher1@example.com |
11
      | student1 | Student | 1 | student1@example.com |
12
    And the following "course enrolments" exist:
13
      | user | course | role |
14
      | teacher1 | C1 | editingteacher |
15
      | student1 | C1 | student |
16
    And the following "activity" exists:
17
      | activity | assign                 |
18
      | course   | C1                     |
19
      | name     | Test hidden assignment |
20
      | visible  | 0                      |
21
    And the following "activity" exists:
22
      | activity | assign                  |
23
      | course   | C1                      |
24
      | name     | Test visible assignment |
25
 
26
  Scenario: A teacher can view a hidden assignment
27
    When I am on the "Test hidden assignment" Activity page logged in as teacher1
28
    Then I should see "Test hidden assignment"
29
    And I should see "Yes" in the "Hidden from students" "table_row"
30
 
31
  Scenario: A teacher can view a visible assignment
32
    Given I am on the "Test visible assignment" Activity page logged in as teacher1
33
    Then I should see "Test visible assignment"
34
    And I should see "No" in the "Hidden from students" "table_row"
35
 
36
  Scenario: A student cannot view a hidden assignment
37
    And I am on the "C1" Course page logged in as student1
38
    And I should not see "Test hidden assignment"
39
    And I should see "Test visible assignment"