Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_html
2
Feature: Adding and configuring multiple Text blocks
3
  In order to have one or multiple Text blocks on a page
4
  As admin
5
  I need to be able to create, configure and change Text blocks
6
 
7
  Background:
8
    Given I log in as "admin"
9
    And I am on site homepage
10
    When I turn editing mode on
11
    And I add the "Text" block
12
 
13
  Scenario: Other users can not see Text block that has not been configured
14
    Then "(new text block)" "block" should exist
15
    And I log out
16
    And "(new text block)" "block" should not exist
17
    And "block_html" "block" should not exist
18
 
19
  Scenario: Other users can see Text block that has been configured even when it has no header
20
    And I configure the "(new text 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 text 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 text block)"
29
 
30
  Scenario: Adding multiple instances of Text block on a page
31
    And I configure the "block_html" block
32
    And I set the field "Text block title" to "The Text 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 "Text" block
36
    And I configure the "(new text block)" block
37
    And I set the field "Text block title" to "The second Text 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 Text block header" "block"
42
    And I should see "Second block contents" in the "The second Text block header" "block"