social_media_buttons.feature 1.97 KB
Newer Older
1
@javascript @core @core_artefact
2
3
4
5
6
7
8
9
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 |
10
     | userA | Kupuhipa1 | test01@example.com | Thor | Almighty | mahara | internal | member |
11
12
And the following "users" exist:
     | username | password | email | firstname | lastname | institution | authname | role |
13
     | userB | Kupuhipa1 | test02@example.com | Iron | Man | mahara | internal | member |
14
15
16


Scenario: Creating and accessing social media buttons (Bug 1448948)
17
 Given I log in as "userA" with password "Kupuhipa1"
18
19
20
21
22
 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 |
23
 | Your URL or username * | https://www.facebook.com/wellingtonphoenixfc |
24
25
26
27
28
29
30
 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
31
 And I wait "1" seconds
32
 And I follow "Social media"
33
 And I press "Add"
34
 And I set the following fields to these values:
35
 | Facebook (Social media) | 1 |
36
 And I follow "Display settings"
37
 And the field "buttons with icons and text" matches value "1"
38
 And I press "Save"
39
40
41
 And I go to "/view/share.php"
 And I click on "Edit access" in "Open source is for winners" row
 And I wait "1" seconds
Robert Lyon's avatar
Robert Lyon committed
42
 And I select "Public" from "accesslist[0][searchtype]"
43
 And I press "Save"
44
 And I should see "Access rules were updated for 1 page"
45
46
 And I follow "Logout"
 # Logging in as userB to try see the buttons
47
 Given I log in as "userB" with password "Kupuhipa1"
48
 And I wait "1" seconds
49
50
51
52
 And I follow "Open source is for winners"
 And I should see "Social Media"
 And I should see "Facebook"