Skip to content

Commit

Permalink
Click on the first matching product link
Browse files Browse the repository at this point in the history
Both the image and the text link are matched and clicking on either is
fine, so do it.

This fixes issue spree-contrib#176.
  • Loading branch information
Björn Andersson committed Jul 26, 2016
1 parent 526d7f4 commit 1007921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/paypal_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def within_transaction_cart(&block)

def add_to_cart(product)
visit spree.root_path
click_link product.name
click_link product.name, match: :first
click_button 'Add To Cart'
end

Expand Down

0 comments on commit 1007921

Please sign in to comment.