diff --git a/spec/features/work_packages/support/shared_contexts.rb b/spec/features/work_packages/support/shared_contexts.rb index 23d0fc5211ed..2b18c3aa3b59 100644 --- a/spec/features/work_packages/support/shared_contexts.rb +++ b/spec/features/work_packages/support/shared_contexts.rb @@ -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