mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-72118 block_html: Rename HTML block to Text
- Loading branch information
Showing
6 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
@block @block_html @core_block | ||
Feature: Adding and configuring HTML blocks | ||
Feature: Adding and configuring Text blocks | ||
In order to have custom blocks on a page | ||
As admin | ||
I need to be able to create, configure and change HTML blocks | ||
I need to be able to create, configure and change Text blocks | ||
|
||
@javascript | ||
Scenario: Configuring the HTML block with Javascript on | ||
Scenario: Configuring the Text block with Javascript on | ||
Given I log in as "admin" | ||
And I am on site homepage | ||
When I turn editing mode on | ||
And I add the "HTML" block | ||
And I configure the "(new HTML block)" block | ||
And I add the "Text" block | ||
And I configure the "(new text block)" block | ||
And I set the field "Content" to "Static text without a header" | ||
Then I should see "HTML block title" | ||
Then I should see "Text block title" | ||
And I press "Save changes" | ||
Then I should not see "(new HTML block)" | ||
Then I should not see "(new text block)" | ||
And I configure the "block_html" block | ||
And I set the field "HTML block title" to "The HTML block header" | ||
And 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 "block_html" "block" should exist | ||
And "The HTML block header" "block" should exist | ||
And I should see "Static text with a header" in the "The HTML block header" "block" | ||
And "The Text block header" "block" should exist | ||
And I should see "Static text with a header" in the "The Text block header" "block" | ||
|
||
Scenario: Configuring the HTML block with Javascript off | ||
Scenario: Configuring the Text block with Javascript off | ||
Given I log in as "admin" | ||
And I am on site homepage | ||
When I turn editing mode on | ||
And I add the "HTML" block | ||
And I configure the "(new HTML block)" block | ||
And I add the "Text" block | ||
And I configure the "(new text block)" block | ||
And I set the field "Content" to "Static text without a header" | ||
And I press "Save changes" | ||
Then I should not see "(new HTML block)" | ||
Then I should not see "(new text block)" | ||
And I configure the "block_html" block | ||
And I set the field "HTML block title" to "The HTML block header" | ||
And 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 "block_html" "block" should exist | ||
And "The HTML block header" "block" should exist | ||
And I should see "Static text with a header" in the "The HTML block header" "block" | ||
And "The Text block header" "block" should exist | ||
And I should see "Static text with a header" in the "The Text block header" "block" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
@block @block_html | ||
Feature: Adding and configuring multiple HTML blocks | ||
In order to have one or multiple HTML blocks on a page | ||
Feature: Adding and configuring multiple Text blocks | ||
In order to have one or multiple Text blocks on a page | ||
As admin | ||
I need to be able to create, configure and change HTML blocks | ||
I need to be able to create, configure and change Text blocks | ||
|
||
Background: | ||
Given I log in as "admin" | ||
And I am on site homepage | ||
When I turn editing mode on | ||
And I add the "HTML" block | ||
And I add the "Text" block | ||
|
||
Scenario: Other users can not see HTML block that has not been configured | ||
Then "(new HTML block)" "block" should exist | ||
Scenario: Other users can not see Text block that has not been configured | ||
Then "(new text block)" "block" should exist | ||
And I log out | ||
And "(new HTML block)" "block" should not exist | ||
And "(new text block)" "block" should not exist | ||
And "block_html" "block" should not exist | ||
|
||
Scenario: Other users can see HTML block that has been configured even when it has no header | ||
And I configure the "(new HTML block)" block | ||
Scenario: Other users can see Text block that has been configured even when it has no header | ||
And I configure the "(new text block)" block | ||
And I set the field "Content" to "Static text without a header" | ||
And I press "Save changes" | ||
Then I should not see "(new HTML block)" | ||
Then I should not see "(new text block)" | ||
And I log out | ||
And I am on homepage | ||
And "block_html" "block" should exist | ||
And I should see "Static text without a header" in the "block_html" "block" | ||
And I should not see "(new HTML block)" | ||
And I should not see "(new text block)" | ||
|
||
Scenario: Adding multiple instances of HTML block on a page | ||
Scenario: Adding multiple instances of Text block on a page | ||
And I configure the "block_html" block | ||
And I set the field "HTML block title" to "The HTML block header" | ||
And 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 "HTML" block | ||
And I configure the "(new HTML block)" block | ||
And I set the field "HTML block title" to "The second HTML block header" | ||
And I add the "Text" block | ||
And I configure the "(new text block)" block | ||
And 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 out | ||
Then I should see "Static text with a header" in the "The HTML block header" "block" | ||
And I should see "Second block contents" in the "The second HTML block header" "block" | ||
Then 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters