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
Show 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,25 +23,31 @@ RSpec.describe 'Iterations list', :js do
...
@@ -23,25 +23,31 @@ RSpec.describe 'Iterations list', :js do
end
end
it
'shows iterations on each tab'
do
it
'shows iterations on each tab'
do
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_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
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'Closed'
)
click_link
(
'Closed'
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_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
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'All'
)
click_link
(
'All'
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
end
end
context
'when an iteration is clicked'
do
context
'when an iteration is clicked'
do
it
'redirects to an iteration report within the group context'
do
it
'redirects to an iteration report within the group context'
do
...
@@ -60,20 +66,25 @@ RSpec.describe 'Iterations list', :js do
...
@@ -60,20 +66,25 @@ RSpec.describe 'Iterations list', :js do
end
end
it
'shows iterations on each tab including ancestor iterations'
do
it
'shows iterations on each tab including ancestor iterations'
do
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_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
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
expect
(
page
).
to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'Closed'
)
click_link
(
'Closed'
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
started_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
(
upcoming_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
expect
(
page
).
not_to
have_link
(
subgroup_iteration
.
title
)
end
click_link
(
'All'
)
click_link
(
'All'
)
aggregate_failures
do
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
started_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
upcoming_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
expect
(
page
).
to
have_link
(
closed_iteration
.
title
)
...
@@ -81,6 +92,7 @@ RSpec.describe 'Iterations list', :js do
...
@@ -81,6 +92,7 @@ RSpec.describe 'Iterations list', :js do
end
end
end
end
end
end
end
context
'as user'
do
context
'as user'
do
before
do
before
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