Skip to content

Commit

Permalink
Scroll to the payment link before clicking
Browse files Browse the repository at this point in the history
For narrower windows this is necessary.
  • Loading branch information
elia committed Oct 6, 2023
1 parent 3aeb718 commit 615552d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/support/solidus_stripe/backend_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ def visit_payments_page

def visit_payment_page(payment)
visit_payments_page
click_on payment.number
click_on_payment(payment)
end

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

# Action helper methods for performing operations on payments
Expand Down

0 comments on commit 615552d

Please sign in to comment.