[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/blocks/html/tests/behat/ -> configuring_html_block.feature (source)

   1  @block @block_html @core_block
   2  Feature: Adding and configuring HTML blocks
   3    In order to have custom blocks on a page
   4    As admin
   5    I need to be able to create, configure and change HTML blocks
   6  
   7    @javascript
   8    Scenario: Configuring the HTML block with Javascript on
   9      Given I log in as "admin"
  10      When I click on "Turn editing on" "link" in the "Administration" "block"
  11      And I add the "HTML" block
  12      And I configure the "(new HTML block)" block
  13      And I set the field "Content" to "Static text without a header"
  14      And I press "Save changes"
  15      Then I should not see "(new HTML block)"
  16      And I configure the "block_html" block
  17      And I set the field "Block title" to "The HTML block header"
  18      And I set the field "Content" to "Static text with a header"
  19      And I press "Save changes"
  20      And "block_html" "block" should exist
  21      And "The HTML block header" "block" should exist
  22      And I should see "Static text with a header" in the "The HTML block header" "block"
  23  
  24    Scenario: Configuring the HTML block with Javascript off
  25      Given I log in as "admin"
  26      When I click on "Turn editing on" "link" in the "Administration" "block"
  27      And I add the "HTML" block
  28      And I configure the "(new HTML block)" block
  29      And I set the field "Content" to "Static text without a header"
  30      And I press "Save changes"
  31      Then I should not see "(new HTML block)"
  32      And I configure the "block_html" block
  33      And I set the field "Block title" to "The HTML block header"
  34      And I set the field "Content" to "Static text with a header"
  35      And I press "Save changes"
  36      And "block_html" "block" should exist
  37      And "The HTML block header" "block" should exist
  38      And I should see "Static text with a header" in the "The HTML block header" "block"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1