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
3bbaa9ec
Commit
3bbaa9ec
authored
Apr 26, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests to assert sidebar behavior
parent
c9b4762e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
ee/spec/features/epics/epic_labels_spec.rb
ee/spec/features/epics/epic_labels_spec.rb
+31
-0
No files found.
ee/spec/features/epics/epic_labels_spec.rb
View file @
3bbaa9ec
...
...
@@ -11,6 +11,8 @@ describe 'Assign labels to an epic', :js do
stub_licensed_features
(
epics:
true
)
sign_in
(
user
)
set_cookie
(
'collapsed_gutter'
,
'true'
)
visit
group_epic_path
(
group
,
epic
)
end
...
...
@@ -30,4 +32,33 @@ describe 'Assign labels to an epic', :js do
end
end
end
context
'when labels icon is clicked on collapsed sidebar'
do
before
do
page
.
within
(
'aside.right-sidebar'
)
do
find
(
'.fa-tags'
).
click
end
wait_for_requests
end
it
'expands sidebar'
do
page
.
within
(
'.content-wrapper .content'
)
do
expect
(
page
).
to
have_css
(
'.right-sidebar-expanded'
)
end
end
it
'opens labels dropdown'
do
page
.
within
(
'aside.right-sidebar'
)
do
expect
(
page
).
to
have_css
(
'.js-selectbox .dropdown.open'
)
end
end
it
'collapses sidebar when clicked outside'
do
page
.
within
(
'.content-wrapper'
)
do
find
(
'.content'
).
click
expect
(
page
).
to
have_css
(
'.right-sidebar-collapsed'
)
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