Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
aaeee979
Commit
aaeee979
authored
Jun 09, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Jun 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Behat: Bug 1830287 Making a friend request from a users profile page"
parents
b762a6d6
5660d49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
test/behat/features/social/friends.feature
test/behat/features/social/friends.feature
+30
-4
No files found.
test/behat/features/social/friends.feature
View file @
aaeee979
...
...
@@ -45,8 +45,34 @@ Scenario: UserA sends friend requests to UserB, UserC, User E
And
I press
"Request friendship"
Then
I should see
"Sent a friendship request to Dave UserD"
# UserA sets Friends control so Nobody may add them as a friend
Given
I select the radio
"Nobody may add me as a friend"
# sending a friend request from a users profile page
When
I select
"Everyone"
from
"Filter"
And
I press
"Search"
Then
I should see
"Earl UserE"
When
I follow
"Earl UserE"
Then
I should see
"Earl UserE"
And
I should see
"Member of Institution Two"
When
I click on
"Request friendship"
Then
I should see
"Send Earl UserE a friendship request"
When
I fill in
"Would you like to be my friend Earl?"
for
"Message"
And
I press
"Request friendship"
Then
I should see
"Sent a friendship request to Earl UserE"
And
I log out
# log in as Earl and view pending friend Requests and accept
Given
I log in as
"UserE"
with password
"Kupuh1pa!"
And
I follow
"pending friend"
Then
I should see
"Angela UserA (UserA)"
And
I should see the date
"today"
in the
".pendingfriend"
element with the format
"l, d F Y"
And
I should see
"Member of Institution One"
When
I press
"Approve"
Then
I should see
"Accepted friend request"
And
I log out
# Admin User sets Friends control so Nobody may add them as a friend
Given
I log in as
"admin"
with password
"Kupuh1pa!"
And
I choose
"People"
in
"Engage"
from main menu
And
I select the radio
"Nobody may add me as a friend"
And
press
"Save"
Then
I should see
"Updated friends control"
And
I log out
...
...
@@ -72,10 +98,10 @@ Scenario: UserA sends friend requests to UserB, UserC, User E
Then
I should see
"Rejected friend request"
Then
I log out
# UserC logs in and tries to add UserA who has set their friends control to Nobody may add me as a friend
# UserC logs in and tries to add UserA who has set their friends control to Nobody may add me as a friend
Given
I log in as
"UserE"
with password
"Kupuh1pa!"
And
I choose
"People"
in
"Engage"
from main menu
When
I select
"Everyone"
from
"Filter"
And
I press
"Search"
Then
I should see
"This user does not want any new friends."
in the
"A
ngela
User
A
"
row
Then
I should see
"This user does not want any new friends."
in the
"A
dmin
User"
row
And
I click on
"Send friend request"
in
"Dave UserD"
row
Write
Preview
Markdown
is supported
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