Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
212af1dd
Commit
212af1dd
authored
May 05, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 05, 2015
Browse files
Merge "Behat Test: Social media buttons (Bug 1448948)"
parents
ecb95409
a0657369
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/artefact/collections/social_media_buttons.feature
0 → 100644
View file @
212af1dd
@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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment