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
209b10b9
Commit
209b10b9
authored
Jul 17, 2020
by
Erick Banks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use let syntax
parent
4c942812
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
...a/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
+9
-8
No files found.
qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb
View file @
209b10b9
...
@@ -3,17 +3,18 @@
...
@@ -3,17 +3,18 @@
module
QA
module
QA
RSpec
.
describe
'Plan'
,
:smoke
,
:reliable
do
RSpec
.
describe
'Plan'
,
:smoke
,
:reliable
do
describe
'mention'
do
describe
'mention'
do
before
do
let
(
:user
)
{
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
}
Flow
::
Login
.
sign_in
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
@user
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'project-to-test-mention'
project
.
name
=
'project-to-test-mention'
project
.
visibility
=
'private'
project
.
visibility
=
'private'
end
end
end
before
do
Flow
::
Login
.
sign_in
project
.
add_member
(
@
user
)
project
.
add_member
(
user
)
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
project
=
project
issue
.
project
=
project
...
@@ -22,7 +23,7 @@ module QA
...
@@ -22,7 +23,7 @@ module QA
it
'mentions another user in an issue'
do
it
'mentions another user in an issue'
do
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
at_username
=
"@
#{
@
user
.
username
}
"
at_username
=
"@
#{
user
.
username
}
"
show
.
select_all_activities_filter
show
.
select_all_activities_filter
show
.
comment
(
at_username
)
show
.
comment
(
at_username
)
...
...
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