Commit b5035e6e authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Behat: Bug 1805766 Allow special profile blocks for templates Added...

Merge "Behat: Bug 1805766 Allow special profile blocks for templates Added text to better describe what script is doing Change-Id: If5382ee89a36730b509d1f7029a60ce04fa8dc77"
parents 642ec673 2aa1808b
@javascript @core @core_administration
Feature: Site admin includes special blocks for the "Profile" site template and the "Dashboard" site template Bug (1805766)
1. Site admin set up "Dashboard template" should include the following:
--- a. My friends block
--- b. My Groups block
--- c. My Portfolios block (already on template by default)
--- d. Watched pages block (already on template by default)
2. Site admin verify "Profile template" includes "Wall" block which is already on template by default
3. Verify that only one block of a certin type can be added to a template page
Scenario: Site admin Site admin set up "Dashboard template" to include the following:
--- a. My friends block
--- b. My Groups block
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Configure site" from administration menu
# Confirm 4 default templates are displayed
Then I should see "Dashboard template"
And I should see "Group homepage template"
And I should see "Profile template"
And I should see "Page template"
When I click on "Edit" in "Dashboard template" card menu
And I expand "Personal info" node
Then I should see "My friends" in the "blocktype sidebar" property
# add "My friends" block and verify it is displayed on the page
When I follow "My friends" in the "blocktype sidebar" property
And I press "Add"
Then I should see "My friends" in the "#column-container" "css_element"
And I should see "My groups" in the "blocktype sidebar" property
# add "My groups" block and verify it is displayed on the page
When I follow "My groups" in the "blocktype sidebar" property
And I press "Add"
Then I should see "My groups" in the "#column-container" "css_element"
When I press "Save"
# Confirm "My portfolios" is in the sidebar - NOTE: page already contains a "My Portfolios" block by default
Then I should see "My portfolios" in the "blocktype sidebar" property
# Confirm "Watched pages" is in the sidebar - NOTE: page already contains a "Watched pages" block by default
When I expand "General" node
Then I should see "Watched pages" in the "blocktype sidebar" property
# Site admin Site admin set up "Profile template" to include the following:
Given I follow "Return to site pages and collections"
And I click on "Edit" in "Profile template" card menu
And I expand "Personal info" node
# Confirm Wall is in the sidebar - NOTE: page already contains a Wall block by default
Then I should see "Wall" in the "blocktype sidebar" property
And I should see "Wall" in the "#column-container" "css_element"
# Verify that only one block of a certin type can be added to a template page (ie only 1 Wall block)
When I follow "Wall" in the "blocktype sidebar" property
And I press "Add"
Then I should see "Cannot put more than one wall block type into a page."
Supports Markdown
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