AutorÃa | Ultima modificación | Ver Log |
@block @block_htmlFeature: Adding and configuring multiple Text blocksIn order to have one or multiple Text blocks on a pageAs adminI need to be able to create, configure and change Text blocksBackground:Given I log in as "admin"And I am on site homepageWhen I turn editing mode onAnd I add the "Text" blockScenario: Other users can not see Text block that has not been configuredThen "(new text block)" "block" should existAnd I log outAnd "(new text block)" "block" should not existAnd "block_html" "block" should not existScenario: Other users can see Text block that has been configured even when it has no headerAnd I configure the "(new text block)" blockAnd I set the field "Content" to "Static text without a header"And I press "Save changes"Then I should not see "(new text block)"And I log outAnd I am on homepageAnd "block_html" "block" should existAnd I should see "Static text without a header" in the "block_html" "block"And I should not see "(new text block)"Scenario: Adding multiple instances of Text block on a pageAnd I configure the "block_html" blockAnd I set the field "Text block title" to "The Text block header"And I set the field "Content" to "Static text with a header"And I press "Save changes"And I add the "Text" blockAnd I configure the "(new text block)" blockAnd I set the field "Text block title" to "The second Text block header"And I set the field "Content" to "Second block contents"And I press "Save changes"And I log outThen I should see "Static text with a header" in the "The Text block header" "block"And I should see "Second block contents" in the "The second Text block header" "block"