Commit 212af1dd authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Behat Test: Social media buttons (Bug 1448948)"

parents ecb95409 a0657369
@javascript @core @core_artefact
Feature: Visibility of social medial buttons
In order to view and click on the social media buttons
As a student
So I can view others social media pages
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Thor | Almighty | mahara | internal | member |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userB | Password1 | test02@example.com | Iron | Man | mahara | internal | member |
Scenario: Creating and accessing social media buttons (Bug 1448948)
Given I log in as "userA" with password "Password1"
And I follow "Content"
And I follow "Social media"
And I follow "New social media account"
And I set the following fields to these values:
| Social network * | Facebook URL |
| Your URL or username * | facebook.com |
And I press "Save"
And I follow "Portfolio"
And I press "Create page"
And I set the following fields to these values:
| Page title * | Open source is for winners |
And I press "Save"
And I expand "Personal info" node
And I follow "Social media"
And I press "Save"
And I set the following fields to these values:
| Social media | 1 |
And I follow "Display settings"
And the following fields match these values:
| buttons with icons only | 0 |
| buttons with icons and text | 1 |
| buttons with text only | 0 |
And I press "Save"
And I follow "Share page »"
And I press "Add access for Public"
And I press "Save"
And I should see "Access rules were updated for 1 page(s)"
And I follow "Logout"
# Logging in as userB to try see the buttons
Given I log in as "userB" with password "Password1"
And I follow "Open source is for winners"
And I should see "Social Media"
And I should see "Twitter"
And I should see "Facebook"
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