[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   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      And I am on site homepage
  10      When I click on "Turn editing on" "link" in the "Administration" "block"
  11      And I add the "HTML" block
  12  
  13    Scenario: Other users can not see HTML block that has not been configured
  14      Then "(new HTML block)" "block" should exist
  15      And I log out
  16      And "(new HTML block)" "block" should not exist
  17      And "block_html" "block" should not exist
  18  
  19    Scenario: Other users can see HTML block that has been configured even when it has no header
  20      And I configure the "(new HTML block)" block
  21      And I set the field "Content" to "Static text without a header"
  22      And I press "Save changes"
  23      Then I should not see "(new HTML block)"
  24      And I log out
  25      And I am on homepage
  26      And "block_html" "block" should exist
  27      And I should see "Static text without a header" in the "block_html" "block"
  28      And I should not see "(new HTML block)"
  29  
  30    Scenario: Adding multiple instances of HTML block on a page
  31      And I configure the "block_html" block
  32      And I set the field "Block title" to "The HTML block header"
  33      And I set the field "Content" to "Static text with a header"
  34      And I press "Save changes"
  35      And I add the "HTML" block
  36      And I configure the "(new HTML block)" block
  37      And I set the field "Block title" to "The second HTML block header"
  38      And I set the field "Content" to "Second block contents"
  39      And I press "Save changes"
  40      And I log out
  41      Then I should see "Static text with a header" in the "The HTML block header" "block"
  42      And I should see "Second block contents" in the "The second HTML block header" "block"


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