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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
ef1b5988
Commit
ef1b5988
authored
Oct 03, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests update
parent
97dc95b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
spec/features/merge_requests/sticky_tabs_spec.rb
spec/features/merge_requests/sticky_tabs_spec.rb
+3
-0
No files found.
spec/features/merge_requests/sticky_tabs_spec.rb
View file @
ef1b5988
...
@@ -17,14 +17,17 @@ feature 'Merge request tabs', js: true, feature: true do
...
@@ -17,14 +17,17 @@ feature 'Merge request tabs', js: true, feature: true do
it
'affixes to top of page when scrolling'
do
it
'affixes to top of page when scrolling'
do
page
.
execute_script
"window.scroll(0,10000)"
page
.
execute_script
"window.scroll(0,10000)"
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix'
)
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix'
)
end
end
it
'removes affix when scrolling to top'
do
it
'removes affix when scrolling to top'
do
page
.
execute_script
"window.scroll(0,10000)"
page
.
execute_script
"window.scroll(0,10000)"
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix'
)
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix'
)
page
.
execute_script
"window.scroll(0,-10000)"
page
.
execute_script
"window.scroll(0,-10000)"
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix-top'
)
expect
(
page
).
to
have_selector
(
'.js-tabs-affix.affix-top'
)
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