Commit 67700a0c authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon

Bug 1753841: Behat: delete text/image blocks

-add check for deleting text block
-add check for deleting image block
-rename files
-rewrite Feature descripton and Scenario summary

Change-Id: Ia61646857fe789e3d513ac335117e860ae56d7cc
(cherry picked from commit 846a4843)
parent 8305e480
@javascript @core @blocktype @blocktype_addimageblock
Feature: Creating a new image block on a page
in order to check that the image is visible
after it is created
Feature: Creating/deleting an image block
As a user
I want to add and remove image blocks from my page
So I can control the content
Background:
Given the following "users" exist:
......@@ -12,8 +13,7 @@ Background:
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Create Image block
Scenario: Create and delete image block
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Page UserA_01" panel menu
......@@ -30,3 +30,8 @@ Scenario: Create Image block
And I scroll to the top
And I follow "Display page"
And I should see "Image1.jpg"
# delete image block
And I follow "Edit"
And I delete the block "Image Block 1"
And I display the page
Then I should not see "Image Block 1"
@javascript @core @blocktype @blocktype_newtextblock
Feature: Creating a new text block on a page
the block
should be visible on the page after it is created
Feature: Creating/deleting a text block
As a user
I want to add and remove text blocks from my page
So I can control the content
Background:
Given the following "users" exist:
......@@ -12,18 +13,22 @@ Background:
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Create Text block
Scenario: Create and delete text block
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I follow "Text"
And I press "Add"
And I set the field "Block title" to "Text Block 1"
And I set the field "Block title" to "Text block 1"
And I set the field "Block content" to "Here is a new block."
And I press "Save"
And I should see "Text block 1" in the "div#column-container" element
And I scroll to the top
And I follow "Display page"
Then I should see "Here is a new block"
# delete block
And I follow "Edit"
And I delete the block "Text block 1"
And I display the page
Then I should not see "Text block 1"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment