Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_glossary
2
Feature: A teacher can set whether glossary entries are always editable or not
3
  In order to ensure students think before adding new entries
4
  As a teacher
5
  I need to prevent entries to be always editable
6
 
7
  Scenario: Glossary entries are not always editable
8
    Given 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 "courses" exist:
13
      | fullname | shortname | category |
14
      | Course 1 | C1 | 0 |
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   | name                   | intro                         | course | idnumber    | editalways |
21
      | glossary   | Test glossary name     | Test glossary description     | C1     | glossary1   | 0          |
22
    And the following config values are set as admin:
23
      | maxeditingtime | 5 |
24
    And I log in as "student1"
25
    And I am on "Course 1" course homepage
26
    And I follow "Test glossary name"
27
    When I add a glossary entry with the following data:
28
      | Concept | Test concept name |
29
      | Definition | Test concept description |
30
    Then "Delete entry: Test concept name" "link" should exist
31
    And "Edit entry: Test concept name" "link" should exist
32
    And I wait "6" seconds
33
    And I reload the page
34
    And "Delete entry: Test concept name" "link" should not exist
35
    And "Edit entry: Test concept name" "link" should not exist