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
64a7b7b5
Commit
64a7b7b5
authored
Feb 11, 2022
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roadmap milestones settings
Review feedback
parent
ff5c04db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
21 deletions
+12
-21
ee/spec/features/groups/group_roadmap_spec.rb
ee/spec/features/groups/group_roadmap_spec.rb
+12
-21
No files found.
ee/spec/features/groups/group_roadmap_spec.rb
View file @
64a7b7b5
...
...
@@ -254,7 +254,7 @@ RSpec.describe 'group epic roadmap', :js do
end
end
def
wait_for_milestones
(
count
)
def
expect_milestones_count
(
count
)
page
.
within
(
'.roadmap-container .milestones-list-section'
)
do
expect
(
page
).
to
have_selector
(
'.milestone-item-details'
,
count:
count
)
end
...
...
@@ -270,28 +270,19 @@ RSpec.describe 'group epic roadmap', :js do
end
end
it
'renders all milestones'
do
select_milestones
(
'Show all milestones'
)
it
'renders milestones based on filter'
do
milestones_counts
=
{
'Show all milestones'
=>
4
,
'Show group milestones'
=>
1
,
'Show sub-group milestones'
=>
1
,
'Show project milestones'
=>
2
}
wait_for_milestones
(
4
)
end
it
'renders group milestones'
do
select_milestones
(
'Show group milestones'
)
wait_for_milestones
(
1
)
end
it
'renders subgroup milestones'
do
select_milestones
(
'Show sub-group milestones'
)
milestones_counts
.
each
do
|
filter
,
count
|
select_milestones
(
filter
)
wait_for_milestones
(
1
)
end
it
'renders project milestones'
do
select_milestones
(
'Show project milestones'
)
wait_for_milestones
(
2
)
expect_milestones_count
(
count
)
end
end
it
'turns off milestones'
do
...
...
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