Use the right selector

In test env. we don't use the stripejs but a mock. Slightly different.
This commit is contained in:
Jean-Baptiste Bellet
2022-03-03 14:14:39 +01:00
parent 0a9c3b1538
commit f8f57a31db

View File

@@ -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