Commit b63d7d4f authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Alfredo Sumaran

Change window size before visiting page, to get correct scroll position

parent 9c60e8fb
---
title: Change rspec test to guarantee window is resized before visiting page
merge_request:
author:
......@@ -10,8 +10,8 @@ feature 'toggler_behavior', js: true, feature: true do
before do
login_as :admin
project = merge_request.source_project
visit "#{namespace_project_merge_request_path(project.namespace, project, merge_request)}#{fragment_id}"
page.current_window.resize_to(1000, 300)
visit "#{namespace_project_merge_request_path(project.namespace, project, merge_request)}#{fragment_id}"
end
describe 'scroll position' do
......
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