Commit ef1b5988 authored by Phil Hughes's avatar Phil Hughes

Tests update

parent 97dc95b1
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment