[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Glossary" to section "1" and I fill the form with: 22 | Name | Test glossary name | 23 | Description | Test glossary description | 24 | Duplicate entries allowed | No | 25 And I follow "Test glossary name" 26 And I add a glossary entry with the following data: 27 | Concept | Unique concept | 28 | Definition | I'm the definition of an unique concept | 29 When I press "Add a new entry" 30 And I set the following fields to these values: 31 | Concept | Unique concept | 32 | Definition | There is no definition restriction | 33 And I press "Save changes" 34 Then I should see "This concept already exists. No duplicates allowed in this glossary." 35 And I press "Cancel" 36
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |