Commit 351645fb authored by Mike Greiling's avatar Mike Greiling

scroll to top before attempting to click the "Side-by-side" button

parent f31bb83d
...@@ -90,9 +90,8 @@ describe 'User comments on a diff', :js do ...@@ -90,9 +90,8 @@ describe 'User comments on a diff', :js do
end end
# Check the same comments in the side-by-side view. # Check the same comments in the side-by-side view.
page.execute_script( execute_script("window.scrollTo(0,0);")
"document.querySelector('#parallel-diff-btn').click()" click_link('Side-by-side')
)
wait_for_requests wait_for_requests
......
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