[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_blog_recent 2 Feature: Feature: Students can use the recent blog entries block to view recent entries on the frontpage 3 In order to enable the recent blog entries block on the frontpage 4 As an admin 5 I can add the recent blog entries block to the frontpage 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | idnumber | 10 | student1 | Student | 1 | student1@example.com | S1 | 11 And I log in as "admin" 12 And I am on site homepage 13 And I navigate to "Turn editing on" node in "Front page settings" 14 And I add the "Recent blog entries" block 15 And I log out 16 17 Scenario: Students use the recent blog entries block to view blogs 18 Given I log in as "student1" 19 And I am on site homepage 20 And I navigate to "Site blogs" node in "Site pages" 21 And I follow "Add a new entry" 22 When I set the following fields to these values: 23 | Entry title | S1 First Blog | 24 | Blog entry body | This is my awesome blog! | 25 And I press "Save changes" 26 Then I should see "S1 First Blog" 27 And I should see "This is my awesome blog!" 28 And I am on site homepage 29 And I should see "S1 First Blog" 30 And I follow "S1 First Blog" 31 And I should see "This is my awesome blog!" 32 33 Scenario: Students only see a few entries in the recent blog entries block 34 Given I log in as "student1" 35 And I am on site homepage 36 And I navigate to "Site blogs" node in "Site pages" 37 And I follow "Add a new entry" 38 # Blog 1 of 5 39 And I set the following fields to these values: 40 | Entry title | S1 First Blog | 41 | Blog entry body | This is my awesome blog! | 42 And I press "Save changes" 43 And I wait "1" seconds 44 And I follow "Add a new entry" 45 # Blog 2 of 5 46 And I set the following fields to these values: 47 | Entry title | S1 Second Blog | 48 | Blog entry body | This is my awesome blog! | 49 And I press "Save changes" 50 And I wait "1" seconds 51 And I should see "S1 Second Blog" 52 And I should see "This is my awesome blog!" 53 And I follow "Add a new entry" 54 # Blog 3 of 5 55 And I set the following fields to these values: 56 | Entry title | S1 Third Blog | 57 | Blog entry body | This is my awesome blog! | 58 And I press "Save changes" 59 And I wait "1" seconds 60 And I should see "S1 Third Blog" 61 And I should see "This is my awesome blog!" 62 And I follow "Add a new entry" 63 # Blog 4 of 5 64 And I set the following fields to these values: 65 | Entry title | S1 Fourth Blog | 66 | Blog entry body | This is my awesome blog! | 67 And I press "Save changes" 68 And I wait "1" seconds 69 And I should see "S1 Fourth Blog" 70 And I should see "This is my awesome blog!" 71 And I follow "Add a new entry" 72 # Blog 5 of 5 73 And I set the following fields to these values: 74 | Entry title | S1 Fifth Blog | 75 | Blog entry body | This is my awesome blog! | 76 And I press "Save changes" 77 And I should see "S1 Fifth Blog" 78 And I should see "This is my awesome blog!" 79 When I am on site homepage 80 And I should not see "S1 First Blog" 81 And I should see "S1 Second Blog" 82 And I should see "S1 Third Blog" 83 And I should see "S1 Fourth Blog" 84 And I should see "S1 Fifth Blog" 85 And I follow "S1 Fifth Blog" 86 And I should see "This is my awesome blog!" 87 Then I log out 88 And I log in as "admin" 89 And I am on site homepage 90 And I navigate to "Turn editing on" node in "Front page settings" 91 And I configure the "Recent blog entries" block 92 And I set the following fields to these values: 93 | id_config_numberofrecentblogentries | 2 | 94 And I press "Save changes" 95 And I should see "S1 Fourth Blog" 96 And I should see "S1 Fifth Blog"
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 |