Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_label
2
 
3
Feature: set label idnumber
4
  In order to set label idnumber
5
  As a teacher
6
  I should create label activity and set an ID number
7
 
8
  Scenario: label ID number input box should be shown.
9
    Given the following "courses" exist:
10
      | fullname | shortname | category |
11
      | Test | C1 | 0 |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email |
14
      | teacher | Teacher | First | teacher1@example.com |
15
      | student | Student | First | student1@example.com |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher | C1 | editingteacher |
19
      | student | C1 | student |
20
    And the following "activities" exist:
21
      | activity | course | section | intro                    | idnumber |
22
      | label    | C1     | 1       | Label with ID number set | C1LABEL1 |
23
    When I log in as "teacher"
24
    And I am on "Test" course homepage with editing mode on
25
    Then "Label with ID number set" activity should be visible
26
    And I turn editing mode off
27
    And "Label with ID number set" activity should be visible
28
    And I log out
29
    And I log in as "student"
30
    And I am on "Test" course homepage
31
    And I should see "Label with ID number set"
32
    And I log out
33
    And I am on the "Label with ID number set" "label activity editing" page logged in as teacher
34
    And I expand all fieldsets
35
    And I should see "ID number" in the "Common module settings" "fieldset"
36
    And the field "ID number" matches value "C1LABEL1"