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 choose whether to allow duplicate entries in a glossary
3
  In order to avoid confusion
4
  As a teacher
5
  I need to avoid having duplicate concept definitions
6
 
7
  @javascript
8
  Scenario: Prevent duplicate entries
9
    Given the following "users" exist:
10
      | username | firstname | lastname | email |
11
      | teacher1 | Teacher | 1 | teacher1@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
    And the following "activity" exists:
19
      | course                 | C1                        |
20
      | activity               | glossary                  |
21
      | name                   | Test glossary name        |
22
      | intro                  | Test glossary description |
23
      | allowduplicatedentries | 0                         |
24
    And I am on the "Test glossary name" "glossary activity" page logged in as teacher1
25
    And I add a glossary entry with the following data:
26
      | Concept | Unique concept |
27
      | Definition | I'm the definition of an unique concept |
28
    When I press "Add entry"
29
    And I set the following fields to these values:
30
      | Concept | Unique concept |
31
      | Definition | There is no definition restriction |
32
    And I press "Save changes"
33
    Then I should see "This concept already exists. No duplicates allowed in this glossary."
34
    And I press "Cancel"