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
85e8d1bc
Commit
85e8d1bc
authored
Mar 29, 2019
by
Cecilia Vela Gurovic
Browse files
Bug 1814621: Updating steps in friends.feature
Change-Id: If122d14a6d64b83aea07d313c458710b4db7aca0
parent
57a9051e
Changes
3
Show whitespace changes
Inline
Side-by-side
htdocs/theme/raw/templates/user/index.tpl
View file @
85e8d1bc
...
...
@@ -8,8 +8,8 @@
{/
if
}
{
if
$count
>
0
}
<div
class=
"
panel panel-default
view-container"
>
<h2
id=
"searchresultsheading"
class=
"
panel
-head
ing
"
>
{
str
tag
=
Results
}
</h2>
<div
class=
"
card
view-container"
>
<h2
id=
"searchresultsheading"
class=
"
card
-head
er
"
>
{
str
tag
=
Results
}
</h2>
<div
id=
"friendslist"
class=
"list-group"
>
{
$results.tablerows
|
safe
}
</div>
...
...
htdocs/theme/raw/templates/user/userfind.tpl
View file @
85e8d1bc
...
...
@@ -12,7 +12,7 @@
{
$user
->
display_name
}
{
if
$user
->
pending
}
<span
class=
"pendingfriend text-small text-midtone"
>
-
{
str
tag
=
'pending'
section
=
'group'
}
-
{
str
tag
=
'pending
since
'
section
=
'group'
arg1
=
$user
->
pending_time
}
</span>
{
elseif
$user
->
friend
&&
$page
==
'find'
}
<span
class=
"existingfriend text-small text-midtone"
>
...
...
test/behat/features/social/friends.feature
View file @
85e8d1bc
...
...
@@ -23,7 +23,7 @@ Background:
Scenario
:
UserA sends friend requests to UserB, UserC, User E
Given
I log in as
"UserA"
with password
"Kupuh1pa!"
And
I choose
"
Find p
eople"
in
"Engage"
from main menu
And
I choose
"
P
eople"
in
"Engage"
from main menu
Then
I should see
"Bob UserB"
And
I should see
"Cecilia UserC"
And
I should not see
"Dave UserD"
...
...
@@ -55,17 +55,17 @@ Scenario: UserA sends friend requests to UserB, UserC, User E
Given
I log in as
"UserB"
with password
"Kupuh1pa!"
When
I follow
"pending friend"
Then
I should see
"Angela UserA (UserA)"
And
I should see the date
"today"
in the
"
h3.card-header
"
element with the format
"l, d F Y"
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
request
"
When
I press
"Approve"
Then
I should see
"Accepted friend request"
And
I log out
Given
I log in as
"UserC"
with password
"Kupuh1pa!"
When
I follow
"pending friend"
Then
I should see
"Angela UserA (UserA)"
And
I should see the date
"today"
in the
"
h3.card-header
"
element with the format
"l, d F Y"
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 click on
"Deny
request
"
When
I click on
"Deny"
Then
I should see
"Reason for rejecting request"
When
I fill in
"I don't know who you are"
for
"Reason for rejecting request"
And
I press
"Deny friend request"
...
...
@@ -74,7 +74,7 @@ Scenario: UserA sends friend requests to UserB, UserC, User E
# 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
"
Find p
eople"
in
"Engage"
from main menu
And
I choose
"
P
eople"
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
"Angela UserA"
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