| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
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 @javascript 8 Scenario: Glossary entries are not always editable 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | teacher1 | Teacher | 1 | [email protected] | 12 | student1 | Student | 1 | [email protected] | 13 And the following "courses" exist: 14 | fullname | shortname | category | 15 | Course 1 | C1 | 0 | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 And I log in as "admin" 21 And I set the following administration settings values: 22 | Maximum time to edit posts | 1 minutes | 23 And I log out 24 And I log in as "teacher1" 25 And I follow "Course 1" 26 And I turn editing mode on 27 And I add a "Glossary" to section "1" and I fill the form with: 28 | Name | Test glossary name | 29 | Description | Test glossary description | 30 | Always allow editing | No | 31 And I log out 32 And I log in as "student1" 33 And I follow "Course 1" 34 And I follow "Test glossary name" 35 When I add a glossary entry with the following data: 36 | Concept | Test concept name | 37 | Definition | Test concept description | 38 Then "Delete: Test concept name" "link" should exist 39 And "Edit: Test concept name" "link" should exist 40 And I wait "65" seconds 41 And I reload the page 42 Then "Delete: Test concept name" "link" should not exist 43 And "Edit: Test concept name" "link" should not exist
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |