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
98ccd4dd
Commit
98ccd4dd
authored
Sep 06, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for issue weight
parent
774a9625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
qa/qa/specs/features/ee/browser_ui/2_plan/issues/issues_weights_spec.rb
...atures/ee/browser_ui/2_plan/issues/issues_weights_spec.rb
+56
-0
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/issues/issues_weights_spec.rb
0 → 100644
View file @
98ccd4dd
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Issues weights'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
end
let
(
:project
)
do
QA
::
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'the-lord-of-the-rings'
end
end
let
(
:milestone
)
do
QA
::
EE
::
Resource
::
ProjectMilestone
.
fabricate_via_api!
do
|
m
|
m
.
project
=
project
m
.
title
=
'the-fellowship-of-the-ring'
end
end
let
(
:weight
)
{
1000
}
let
(
:issue
)
do
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
milestone
=
milestone
issue
.
project
=
project
issue
.
title
=
'keep-the-ring-safe'
issue
.
weight
=
weight
end
end
it
'shows the set weight in the issue page, in the milestone page, and in the issues list page'
do
issue
.
visit!
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
expect
(
show
.
weight_label_value
).
to
have_content
(
weight
)
show
.
click_milestone_link
end
Page
::
Project
::
Milestone
::
Index
.
perform
do
|
index
|
expect
(
index
.
total_issue_weight_value
).
to
have_content
(
weight
)
end
Page
::
Project
::
Menu
.
perform
(
&
:click_issues
)
Page
::
Project
::
Issue
::
Index
.
perform
do
|
index
|
expect
(
index
.
issuable_weight
).
to
have_content
(
weight
)
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