Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7c997780
Commit
7c997780
authored
Sep 12, 2019
by
Walmyr Lima e Silva Filho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add end-to-end test for issue mention
parent
b3fa2c43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
...a/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
+58
-0
No files found.
qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
0 → 100644
View file @
7c997780
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'mention'
do
let
(
:user
)
do
Resource
::
User
.
fabricate_via_api!
do
|
user
|
user
.
name
=
"bob"
user
.
password
=
"1234test"
end
end
before
do
QA
::
Runtime
::
Env
.
personal_access_token
=
QA
::
Runtime
::
Env
.
admin_personal_access_token
unless
QA
::
Runtime
::
Env
.
personal_access_token
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_admin_credentials
)
end
QA
::
Runtime
::
Env
.
personal_access_token
=
nil
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
if
Page
::
Main
::
Menu
.
perform
{
|
p
|
p
.
has_personal_area?
(
wait:
0
)
}
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
resource
|
resource
.
name
=
'project-to-test-mention'
end
project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:go_to_members_settings
)
Page
::
Project
::
Settings
::
Members
.
perform
do
|
members
|
members
.
add_member
(
user
.
username
)
end
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
'issue to test mention'
issue
.
project
=
project
end
issue
.
visit!
end
it
'user mentions another user in an issue'
do
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
at_username
=
"@
#{
user
.
username
}
"
show
.
select_all_activities_filter
show
.
comment
(
at_username
)
expect
(
show
).
to
have_link
(
at_username
)
end
end
end
end
end
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