mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Use the right selector
In test env. we don't use the stripejs but a mock. Slightly different.
This commit is contained in:
@@ -15,10 +15,9 @@ module StripeHelper
|
||||
end
|
||||
|
||||
def fill_out_card_details
|
||||
expect(page).to have_css("input[name='cardnumber']")
|
||||
fill_in 'Card number', with: '4242424242424242'
|
||||
fill_in 'MM / YY', with: "01/#{DateTime.now.year + 1}"
|
||||
fill_in 'CVC', with: '123'
|
||||
fill_in "stripe-cardnumber", with: '4242424242424242'
|
||||
fill_in "exp-date", with: "01/#{DateTime.now.year + 1}"
|
||||
fill_in "cvc", with: "123"
|
||||
end
|
||||
|
||||
def fill_in_card_details_in_backoffice
|
||||
|
||||
Reference in New Issue
Block a user