From ff8c150be647c841426eed6a1a74f25966dab131 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Fri, 6 Oct 2023 13:20:08 +0200 Subject: [PATCH] elia/post-release-updates: [wip] --- spec/support/solidus_stripe/backend_test_helper.rb | 1 - spec/system/backend/solidus_stripe/orders/payments_spec.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/support/solidus_stripe/backend_test_helper.rb b/spec/support/solidus_stripe/backend_test_helper.rb index 36b3577b..146eeda1 100644 --- a/spec/support/solidus_stripe/backend_test_helper.rb +++ b/spec/support/solidus_stripe/backend_test_helper.rb @@ -75,7 +75,6 @@ def visit_payment_page(payment) def click_on_payment(payment) payment_number_link = find_link(payment.number) - page.current_window.resize_to(1200, 800) scroll_to payment_number_link payment_number_link.click end diff --git a/spec/system/backend/solidus_stripe/orders/payments_spec.rb b/spec/system/backend/solidus_stripe/orders/payments_spec.rb index deb5d0ad..d0c32e8b 100644 --- a/spec/system/backend/solidus_stripe/orders/payments_spec.rb +++ b/spec/system/backend/solidus_stripe/orders/payments_spec.rb @@ -7,6 +7,7 @@ include Devise::Test::IntegrationHelpers stub_authorization! + before { driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] } let(:user) { create(:admin_user) } context 'with successful payment operations' do @@ -16,7 +17,6 @@ within('[data-hook="admin_order_tabs"]') do payments_link = find_link('Payments') scroll_to payments_link - page.current_window.resize_to(1200, 800) payments_link.click end expect(page).to have_content(payment.number)