diff --git a/spec/system/backend/solidus_stripe/orders/payments_spec.rb b/spec/system/backend/solidus_stripe/orders/payments_spec.rb index 4c7f5058..c0400573 100644 --- a/spec/system/backend/solidus_stripe/orders/payments_spec.rb +++ b/spec/system/backend/solidus_stripe/orders/payments_spec.rb @@ -6,6 +6,7 @@ include SolidusStripe::BackendTestHelper include Devise::Test::IntegrationHelpers stub_authorization! + before { driven_by(:selenium, using: :headless_chrome) } let(:user) { create(:admin_user) } @@ -13,8 +14,7 @@ it 'navigates to the payments page' do payment = create_authorized_payment visit_payments_page - - click_on 'Payments' + within('[data-hook="admin_order_tabs"]') { click_on 'Payments' } expect(page).to have_content(payment.number) end