Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_html @core_block
2
Feature: Adding and configuring Text 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 Text blocks
6
 
7
  @javascript
8
  Scenario: Configuring the Text block with Javascript on
9
    Given I log in as "admin"
10
    And I am on site homepage
11
    When I turn editing mode on
12
    And I add the "Text" block to the default region with:
13
      | Text block title |                              |
14
      | Content          | Static text without a header |
15
    Then I should not see "(new text block)"
16
    And I configure the "block_html" block
17
    And I set the field "Text block title" to "The Text 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 Text block header" "block" should exist
22
    And I should see "Static text with a header" in the "The Text block header" "block"
23
 
24
  Scenario: Configuring the Text block with Javascript off
25
    Given I log in as "admin"
26
    And I am on site homepage
27
    When I turn editing mode on
28
    And I add the "Text" block
29
    And I configure the "(new text block)" block
30
    And I set the field "Content" to "Static text without a header"
31
    And I press "Save changes"
32
    Then I should not see "(new text block)"
33
    And I configure the "block_html" block
34
    And I set the field "Text block title" to "The Text block header"
35
    And I set the field "Content" to "Static text with a header"
36
    And I press "Save changes"
37
    And "block_html" "block" should exist
38
    And "The Text block header" "block" should exist
39
    And I should see "Static text with a header" in the "The Text block header" "block"