[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @block @block_html 2 Feature: Adding and configuring HTML blocks 3 In order to have one or multiple HTML blocks on a page 4 As admin 5 I need to be able to create, configure and change HTML blocks 6 7 Background: 8 Given I log in as "admin" 9 When I click on "Turn editing on" "link" in the "Administration" "block" 10 And I add the "HTML" block 11 12 Scenario: Other users can not see HTML block that has not been configured 13 Then "(new HTML block)" "block" should exist 14 And I log out 15 And "(new HTML block)" "block" should not exist 16 And "block_html" "block" should not exist 17 18 Scenario: Other users can see HTML block that has been configured even when it has no header 19 And I configure the "(new HTML block)" block 20 And I set the field "Content" to "Static text without a header" 21 And I press "Save changes" 22 Then I should not see "(new HTML block)" 23 And I log out 24 And I am on homepage 25 And "block_html" "block" should exist 26 And I should see "Static text without a header" in the "block_html" "block" 27 And I should not see "(new HTML block)" 28 29 Scenario: Adding multiple instances of HTML block on a page 30 And I configure the "block_html" block 31 And I set the field "Block title" to "The HTML block header" 32 And I set the field "Content" to "Static text with a header" 33 And I press "Save changes" 34 And I add the "HTML" block 35 And I configure the "(new HTML block)" block 36 And I set the field "Block title" to "The second HTML block header" 37 And I set the field "Content" to "Second block contents" 38 And I press "Save changes" 39 And I log out 40 Then I should see "Static text with a header" in the "The HTML block header" "block" 41 And I should see "Second block contents" in the "The second HTML block header" "block"
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 |