[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_wiki 2 Feature: Edited wiki pages may be previewed before saving 3 In order to avoid silly mistakes 4 As a user 5 I need to preview pages before saving changes 6 7 Background: 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 I log in as "teacher1" 20 And I follow "Course 1" 21 And I turn editing mode on 22 And I add a "Wiki" to section "1" and I fill the form with: 23 | Wiki name | Test wiki name | 24 | Description | Test wiki description | 25 | First page name | First page | 26 | Wiki mode | Collaborative wiki | 27 And I log out 28 And I log in as "student1" 29 And I follow "Course 1" 30 And I follow "Test wiki name" 31 When I press "Create page" 32 And I set the following fields to these values: 33 | HTML format | Student page contents to be previewed | 34 And I press "Preview" 35 Then I expand all fieldsets 36 And I should see "This is a preview. Changes have not been saved yet" 37 And I should see "Student page contents to be previewed" 38 And I press "Save" 39 And I should see "Student page contents to be previewed" 40 And I follow "Edit" 41 42 @javascript 43 Scenario: Page contents preview before saving with Javascript enabled 44 Then the field "HTML format" matches value "Student page contents to be previewed" 45 And I press "Cancel" 46 47 Scenario: Page contents preview before saving with Javascript disabled 48 Then the field "HTML format" matches value "Student page contents to be previewed" 49 And I press "Cancel"
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 |