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
adb564bd
Commit
adb564bd
authored
Dec 14, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate milestone sidebar rspec tests
Review feedback
parent
e8f93d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
spec/support/shared_examples/features/sidebar/sidebar_milestone_shared_examples.rb
...les/features/sidebar/sidebar_milestone_shared_examples.rb
+3
-4
No files found.
spec/support/shared_examples/features/sidebar/sidebar_milestone_shared_examples.rb
View file @
adb564bd
...
...
@@ -27,10 +27,9 @@ RSpec.shared_examples 'milestone sidebar widget' do
within
(
milestone_widget
,
'.gl-new-dropdown-contents'
)
do
expect
(
page
.
find
(
'li:last-child'
)).
to
have_content
milestone_expired
.
title
expect
(
page
.
all
(
'li.gl-new-dropdown-item'
)[
1
]).
to
have_content
milestone3
.
title
expect
(
page
.
all
(
'li.gl-new-dropdown-item'
)[
2
]).
to
have_content
milestone2
.
title
expect
(
page
.
all
(
'li.gl-new-dropdown-item'
)[
3
]).
to
have_content
milestone1
.
title
expect
(
page
.
all
(
'li.gl-new-dropdown-item'
)[
4
]).
to
have_content
milestone_no_duedate
.
title
[
milestone3
,
milestone2
,
milestone1
,
milestone_no_duedate
].
each_with_index
do
|
m
,
i
|
expect
(
page
.
all
(
'li.gl-new-dropdown-item'
)[
i
+
1
]).
to
have_content
m
.
title
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