diff --git a/spec/support/request/ui_component_helper.rb b/spec/support/request/ui_component_helper.rb index 989efa40a0..ee7aedfbfe 100644 --- a/spec/support/request/ui_component_helper.rb +++ b/spec/support/request/ui_component_helper.rb @@ -10,14 +10,10 @@ module UIComponentHelper end def browse_as_default(&block) - browse_with_window_size(1200, 800) + browse_with_window_size(1280, 800) block&.call end - def browse_as_large(&block) - browse_with_window_size(1280, 800, &block) - end - def browse_with_window_size(width, height, &block) Capybara.current_session.current_window .resize_to(width, height) diff --git a/spec/system/consumer/authentication_spec.rb b/spec/system/consumer/authentication_spec.rb index a1ca62e60d..a9b1dbe3a6 100644 --- a/spec/system/consumer/authentication_spec.rb +++ b/spec/system/consumer/authentication_spec.rb @@ -24,9 +24,7 @@ describe "Authentication" do before do visit root_path end - describe "as large" do - around { |example| browse_as_large { example.run } } - + describe "with default large screen" do before do open_login_modal end diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index 556b59b893..66a94431fc 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -100,8 +100,6 @@ describe 'Multilingual' do end describe "using the language switcher UI" do - around { |example| browse_as_large { example.run } } - context "when there is only one language available" do before do allow(ENV).to receive(:[]).and_call_original diff --git a/spec/system/support/cuprite_setup.rb b/spec/system/support/cuprite_setup.rb index bdb7ba433e..d509c6ff9c 100644 --- a/spec/system/support/cuprite_setup.rb +++ b/spec/system/support/cuprite_setup.rb @@ -11,7 +11,7 @@ Capybara.register_driver(:cuprite) do |app| Capybara::Cuprite::Driver.new( app, **{ - window_size: [1200, 800], + window_size: [1280, 800], browser_options: browser_options, process_timeout: 60, timeout: 60,