This commit is contained in:
simon lehericey 2023-04-24 10:59:42 +02:00
parent 8c78008b4d
commit ae1fd3f30b

View file

@ -427,12 +427,10 @@ describe 'The user' do
expect(page).to have_css('legend h2', text: 'info voiture', visible: true) expect(page).to have_css('legend h2', text: 'info voiture', visible: true)
expect(page).to have_no_css('label', text: 'tonnage', visible: true) expect(page).to have_no_css('label', text: 'tonnage', visible: true)
choose('Oui') choose('Oui')
expect(page).to have_css('label', text: 'permis de conduire', visible: true) expect(page).to have_css('label', text: 'permis de conduire', visible: true)
expect(page).to have_css('label', text: 'tonnage', visible: true) expect(page).to have_css('label', text: 'tonnage', visible: true)
fill_in('tonnage', with: '1') fill_in('tonnage', with: '1')
expect(page).to have_css('label', text: 'parking', visible: true) expect(page).to have_css('label', text: 'parking', visible: true)