diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-10 13:13:07 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-10 13:13:07 +0100 |
commit | 517895da4c1ca6201f952e443a579e4f2845e6e0 (patch) | |
tree | 85f42b0404045086ccabd1a5d40d8f16ac30e068 /spec | |
parent | ef1b5988af68a2811c079f785351e30fa8afd347 (diff) | |
download | gitlab-ce-517895da4c1ca6201f952e443a579e4f2845e6e0.tar.gz |
Don't run affix tabs in test envmr-tabs-affix
This was messing up other tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/merge_requests/sticky_tabs_spec.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/features/merge_requests/sticky_tabs_spec.rb b/spec/features/merge_requests/sticky_tabs_spec.rb deleted file mode 100644 index 3e8bd768324..00000000000 --- a/spec/features/merge_requests/sticky_tabs_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec_helper' - -feature 'Merge request tabs', js: true, feature: true do - include WaitForAjax - - let(:user) { create(:user) } - let(:project) { create(:project, :public) } - let(:merge_request) { create(:merge_request_with_diffs, source_project: project, author: user, title: "Bug NS-04") } - - before do - project.team << [user, :master] - login_as user - visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request) - - wait_for_ajax - end - - it 'affixes to top of page when scrolling' do - page.execute_script "window.scroll(0,10000)" - - expect(page).to have_selector('.js-tabs-affix.affix') - end - - it 'removes affix when scrolling to top' do - page.execute_script "window.scroll(0,10000)" - - expect(page).to have_selector('.js-tabs-affix.affix') - - page.execute_script "window.scroll(0,-10000)" - - expect(page).to have_selector('.js-tabs-affix.affix-top') - end -end |