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
61fbacea
Commit
61fbacea
authored
Sep 01, 2020
by
Coung Ngo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve ee/spec/features/groups/iterations/iterations_list_spec.rb test
Improve test as a result of reviewer comments
parent
dfea6ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
24 deletions
+36
-24
ee/spec/features/groups/iterations/iterations_list_spec.rb
ee/spec/features/groups/iterations/iterations_list_spec.rb
+36
-24
No files found.
ee/spec/features/groups/iterations/iterations_list_spec.rb
View file @
61fbacea
...
...
@@ -23,24 +23,30 @@ RSpec.describe 'Iterations list', :js do
end
it
'shows iterations on each tab'
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'Closed'
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'All'
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
end
context
'when an iteration is clicked'
do
...
...
@@ -60,24 +66,30 @@ RSpec.describe 'Iterations list', :js do
end
it
'shows iterations on each tab including ancestor iterations'
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'Closed'
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'All'
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
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