add id to inputs and repair tests

This commit is contained in:
Rishabh Saxena 2016-07-07 18:39:35 +05:30
parent c57a8a1d00
commit 1af6fa5ad1
2 changed files with 9 additions and 9 deletions

View file

@ -35,11 +35,11 @@ feature Registration do
fill_in 'first_name', with: 'foo'
fill_in 'last_name', with: 'bar'
fill_in 'expiration_year', Date.current.year + 2
fill_in 'expiration_year', with: Date.current.year + 2
fill_in 'card_verification_value', with: '123'
fill_in 'credit_card_number', with: '4242424242424242'
click_button 'Charge Card'
click_button 'charge_card'
payment = Payment.where(user_id: participant, conference_id: conference.id).first
expect(payment.amount).to eq(20)