[ Index ]

PHP Cross Reference of Unnamed Project

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      And I am on site homepage
  11      When I click on "Turn editing on" "link" in the "Administration" "block"
  12      And I add the "HTML" block
  13      And I configure the "(new HTML block)" block
  14      And I set the field "Content" to "Static text without a header"
  15      And I press "Save changes"
  16      Then I should not see "(new HTML block)"
  17      And I configure the "block_html" block
  18      And I set the field "Block title" to "The HTML block header"
  19      And I set the field "Content" to "Static text with a header"
  20      And I press "Save changes"
  21      And "block_html" "block" should exist
  22      And "The HTML block header" "block" should exist
  23      And I should see "Static text with a header" in the "The HTML block header" "block"
  24  
  25    Scenario: Configuring the HTML block with Javascript off
  26      Given I log in as "admin"
  27      And I am on site homepage
  28      When I click on "Turn editing on" "link" in the "Administration" "block"
  29      And I add the "HTML" block
  30      And I configure the "(new HTML block)" block
  31      And I set the field "Content" to "Static text without a header"
  32      And I press "Save changes"
  33      Then I should not see "(new HTML block)"
  34      And I configure the "block_html" block
  35      And I set the field "Block title" to "The HTML block header"
  36      And I set the field "Content" to "Static text with a header"
  37      And I press "Save changes"
  38      And "block_html" "block" should exist
  39      And "The HTML block header" "block" should exist
  40      And I should see "Static text with a header" in the "The HTML block header" "block"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1