specs: add two missing fields to the brouillon spec
This commit is contained in:
parent
5dbb9f9e3c
commit
9dd7806ae5
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,8 @@ describe 'The user' do
|
||||||
fill_in('date', with: '12-12-2012')
|
fill_in('date', with: '12-12-2012')
|
||||||
select_date_and_time(Time.zone.parse('06/01/2030 7h05'), form_id_for_datetime('datetime'))
|
select_date_and_time(Time.zone.parse('06/01/2030 7h05'), form_id_for_datetime('datetime'))
|
||||||
fill_in('number', with: '42')
|
fill_in('number', with: '42')
|
||||||
|
fill_in('decimal_number', with: '17')
|
||||||
|
fill_in('integer_number', with: '12')
|
||||||
scroll_to(find_field('checkbox'), align: :center)
|
scroll_to(find_field('checkbox'), align: :center)
|
||||||
check('checkbox')
|
check('checkbox')
|
||||||
choose('Madame')
|
choose('Madame')
|
||||||
|
@ -50,6 +52,8 @@ describe 'The user' do
|
||||||
expect(champ_value_for('date')).to eq('2012-12-12')
|
expect(champ_value_for('date')).to eq('2012-12-12')
|
||||||
expect(champ_value_for('datetime')).to eq('06/01/2030 07:05')
|
expect(champ_value_for('datetime')).to eq('06/01/2030 07:05')
|
||||||
expect(champ_value_for('number')).to eq('42')
|
expect(champ_value_for('number')).to eq('42')
|
||||||
|
expect(champ_value_for('decimal_number')).to eq('17')
|
||||||
|
expect(champ_value_for('integer_number')).to eq('12')
|
||||||
expect(champ_value_for('checkbox')).to eq('on')
|
expect(champ_value_for('checkbox')).to eq('on')
|
||||||
expect(champ_value_for('civilite')).to eq('Mme')
|
expect(champ_value_for('civilite')).to eq('Mme')
|
||||||
expect(champ_value_for('email')).to eq('loulou@yopmail.com')
|
expect(champ_value_for('email')).to eq('loulou@yopmail.com')
|
||||||
|
|
Loading…
Reference in a new issue