Skip to content

Commit

Permalink
Resize window with new capybara api
Browse files Browse the repository at this point in the history
  • Loading branch information
basiszwo committed Aug 21, 2015
1 parent 5cdcf3a commit 32fad69
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/features/work_packages/support/shared_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@
# is needed for certain situations where the details pane must be visible

RSpec.shared_context 'maximized window' do
def maximize!
page.driver.browser.manage.window.maximize
end

before do
maximize!
Capybara.current_session.current_window.resize_to(1920, 1080)
end
end

Expand Down

0 comments on commit 32fad69

Please sign in to comment.