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
1da62670
Commit
1da62670
authored
Jan 27, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved code style on the issue_sidebar_spec.rb
parent
ffc5ec7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+11
-10
No files found.
spec/features/issues/issue_sidebar_spec.rb
View file @
1da62670
require
'rails_helper'
feature
'Issue Sidebar'
,
feature:
true
do
include
WaitForAjax
,
MobileHelpers
include
WaitForAjax
include
MobileHelpers
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
...
...
@@ -67,19 +68,12 @@ feature 'Issue Sidebar', feature: true do
# Make sure the sidebar is collapsed
expect
(
page
).
to
have_css
(
sidebar_selector
)
# Once is collapsed let's open the sidebard and reload
page
.
within
(
sidebar_selector
)
do
find
(
'.js-sidebar-toggle'
).
click
# we wait a bit so the sidebar finishes it's animation
sleep
1
end
open_issue_sidebar
refresh
expect
(
page
).
to
have_css
(
sidebar_selector
)
# Restore the window size as it was including the sidebar
restore_window_size
page
.
within
(
sidebar_selector
)
do
find
(
'.js-sidebar-toggle'
).
click
sleep
1
end
open_issue_sidebar
end
end
...
...
@@ -133,4 +127,11 @@ feature 'Issue Sidebar', feature: true do
def
visit_issue
(
project
,
issue
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
end
def
open_issue_sidebar
page
.
within
(
'aside.right-sidebar.right-sidebar-collapsed'
)
do
find
(
'.js-sidebar-toggle'
).
click
sleep
1
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