Use CSS substring selector for selecting Capture link by order number

This commit is contained in:
David Cook
2013-06-11 17:16:37 +10:00
parent ada95183a2
commit 269c6ac14f

View File

@@ -25,8 +25,7 @@ feature %q{
@orders.each |order|
#click the link for the order
click_link "[data-action=capture]"
#click_link "[data-action=capture][href|=R#{order.number}]" #not sure if possible to select value within an attribute value, |= doesn't work
click_link "[data-action=capture][href*=R#{order.number}]"
#we should be notified
flash_message.should == "Payment Updated"